-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smooth AOTE #963
Open
olim88
wants to merge
39
commits into
SkyblockerMod:master
Choose a base branch
from
olim88:smoothAOTE
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+595
−2
Open
Smooth AOTE #963
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
f0feb8b
init commit
olim88 188a62c
add setting and base teleport time on ping
olim88 1d8eaf7
add settings for each wepon type and work with each of them
olim88 d3ae3fa
add raycast
olim88 1f1163d
cheak the players mana before assuming they can teleport
olim88 aa37c16
remove un needed setting
olim88 624cead
add java docs and 3rd person check
olim88 4325aa3
clean
olim88 0a8f18d
fix 3rd person check
olim88 9ca11ac
apply suggested changes
olim88 8ccc907
do not allow when invalid location
olim88 9f60637
fix etherwarp logic using wrong tp
olim88 7cc8085
add tooltips to options
olim88 d3f0da3
fix : click too fast cause the animation break
olim88 1d39287
fix mixin
viciscat bf77bed
add more disabled locations and fix for not coded disabled locations
olim88 36f9fe5
improve raycast to be more like hypxiels
olim88 661c9e1
add separate cameraStartPos to try and smooth combined animations
olim88 d82f02a
fix extra code
olim88 0b3e64d
fix not working when clicking dirt with shovel
olim88 9cf2317
more clean
olim88 1076a32
fix the init
olim88 fafe6c2
fix multiple teleports when looking at a block
olim88 95e6984
hopefully improve raycast and add allowed blocks
olim88 7ead10f
do bad client side mana calculation
olim88 7f157ce
only don't check head pos on first block
olim88 4784404
improve head height test
olim88 3bebe3e
add close floor check
olim88 fb67c47
add can teleport though fire
olim88 65c25df
add checking for diagonals
olim88 a2a67bb
add new is floor check for the close floor check
olim88 b2819b7
update allowed blocks and improve diagonal collision
olim88 dd0481e
diagonals only work if its floor block
olim88 0c60f71
java docs
olim88 cbb31ab
remove debug
olim88 d20a1b7
can teleport though pots
olim88 aaae4dc
Update SmoothAOTE.java
olim88 7fec399
Apply suggestions from code review
kevinthegreat1 3c543c9
apply suggested changes
olim88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.hysky.skyblocker.mixins; | ||
|
||
import com.llamalad7.mixinextras.injector.ModifyReturnValue; | ||
import de.hysky.skyblocker.skyblock.SmoothAOTE; | ||
import net.minecraft.client.render.Camera; | ||
import net.minecraft.util.math.Vec3d; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(Camera.class) | ||
public class CameraMixin { | ||
|
||
@ModifyReturnValue(method = "getPos", at = @At("RETURN")) | ||
private Vec3d skyblocker$onCameraUpdate(Vec3d original) { | ||
Vec3d pos = SmoothAOTE.getInterpolatedPos(); | ||
if (pos != null) { | ||
return pos; | ||
} | ||
|
||
return original; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also check for smoothing being enabled