forked from Strangerrrs/Raven-bS
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [+] **Add** Animations. - Allow you change swing/block animation and speed. - Override LabyMod 'block/swing' option. - [+] **Add** FreeLook. - [+] **Add** Step. - Made for Hypixel. - [※] **Improve** Backtrack. - [+] **Add** 'LegitInv' mode to InvMove. - [※] **Fix** 'Sort mode' of KillAura doesn't work. - [+] **Add** 'WaitBreakBlock' to Phase. - [※] **Improve** JumpReset. - [※] **Fix** AntiVoid sometimes do useless blink. - [※] **Fix** 'Hit through block' of Reach sometimes crash with FastMine. - [※] **Fix** sometimes crash on starting client. - [+] **Add** 'LowHopTest', 'Strafe B' mode to Speed. - Thanks to @dragon. - [+] **Add** 'Hypixel' mode to Timer. - Thanks to @dragon. - [※] **Fix** Slider sometimes draws wrong. - [+] **Add** 'Hypixel' mode to Sprint. - Old Sprint now is called 'Legit' mode. - [+] **Add** 'Cancel air' option to Velocity.
- Loading branch information
Showing
38 changed files
with
1,049 additions
and
166 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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,6 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
public class PostVelocityEvent extends Event { | ||
} |
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,71 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraft.item.EnumAction; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.fml.common.eventhandler.Cancelable; | ||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
@Cancelable | ||
public final class RenderItemEvent extends Event { | ||
private EnumAction enumAction; | ||
private boolean useItem; | ||
private float animationProgression, partialTicks, swingProgress; | ||
private ItemStack itemToRender; | ||
|
||
public RenderItemEvent(EnumAction enumAction, boolean useItem, float animationProgression, float partialTicks, float swingProgress, ItemStack itemToRender) { | ||
this.enumAction = enumAction; | ||
this.useItem = useItem; | ||
this.animationProgression = animationProgression; | ||
this.partialTicks = partialTicks; | ||
this.swingProgress = swingProgress; | ||
this.itemToRender = itemToRender; | ||
} | ||
|
||
public EnumAction getEnumAction() { | ||
return enumAction; | ||
} | ||
|
||
public void setEnumAction(EnumAction enumAction) { | ||
this.enumAction = enumAction; | ||
} | ||
|
||
public boolean isUseItem() { | ||
return useItem; | ||
} | ||
|
||
public void setUseItem(boolean useItem) { | ||
this.useItem = useItem; | ||
} | ||
|
||
public float getAnimationProgression() { | ||
return animationProgression; | ||
} | ||
|
||
public void setAnimationProgression(float animationProgression) { | ||
this.animationProgression = animationProgression; | ||
} | ||
|
||
public float getPartialTicks() { | ||
return partialTicks; | ||
} | ||
|
||
public void setPartialTicks(float partialTicks) { | ||
this.partialTicks = partialTicks; | ||
} | ||
|
||
public float getSwingProgress() { | ||
return swingProgress; | ||
} | ||
|
||
public void setSwingProgress(float swingProgress) { | ||
this.swingProgress = swingProgress; | ||
} | ||
|
||
public ItemStack getItemToRender() { | ||
return itemToRender; | ||
} | ||
|
||
public void setItemToRender(ItemStack itemToRender) { | ||
this.itemToRender = itemToRender; | ||
} | ||
} |
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,15 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
public class StepEvent extends Event { | ||
private final double height; | ||
|
||
public StepEvent(double height) { | ||
this.height = height; | ||
} | ||
|
||
public double getHeight() { | ||
return height; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/keystrokesmod/event/SwingAnimationEvent.java
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,19 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
public final class SwingAnimationEvent extends Event { | ||
private int animationEnd; | ||
|
||
public SwingAnimationEvent(int animationEnd) { | ||
this.animationEnd = animationEnd; | ||
} | ||
|
||
public int getAnimationEnd() { | ||
return animationEnd; | ||
} | ||
|
||
public void setAnimationEnd(int animationEnd) { | ||
this.animationEnd = animationEnd; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/main/java/keystrokesmod/mixins/impl/network/MixinNetHandlerPlayClient.java
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,26 @@ | ||
package keystrokesmod.mixins.impl.network; | ||
|
||
|
||
import keystrokesmod.Raven; | ||
import keystrokesmod.event.PostVelocityEvent; | ||
import keystrokesmod.utility.Utils; | ||
import net.minecraft.client.network.NetHandlerPlayClient; | ||
import net.minecraft.network.play.server.S12PacketEntityVelocity; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(NetHandlerPlayClient.class) | ||
public abstract class MixinNetHandlerPlayClient { | ||
|
||
@Inject(method = "handleEntityVelocity", at = @At("RETURN")) | ||
public void onHandleEntityVelocity(S12PacketEntityVelocity packet, CallbackInfo ci) { | ||
if (!Utils.nullCheck()) return; | ||
|
||
if (packet.getEntityID() == Raven.mc.thePlayer.getEntityId()) { | ||
MinecraftForge.EVENT_BUS.post(new PostVelocityEvent()); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/keystrokesmod/mixins/impl/render/ItemRendererAccessor.java
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,15 @@ | ||
package keystrokesmod.mixins.impl.render; | ||
|
||
import net.minecraft.client.renderer.ItemRenderer; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(ItemRenderer.class) | ||
public interface ItemRendererAccessor { | ||
|
||
@Invoker("transformFirstPersonItem") | ||
void transformFirstPersonItem(float animationProgression, float swingProgress); | ||
|
||
@Invoker("func_178103_d") | ||
void blockTransformation(); | ||
} |
Oops, something went wrong.