Class EventPlayerUpdate
java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.player.EventPlayerUpdate
- All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable
public class EventPlayerUpdate
extends org.rusherhack.core.event.type.EventCancellable
This event is called when the game is preparing to send player updates to the server.
Used modify the player's position, rotation, and on-ground state for the tick. Player states revert after POST stage is posted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetPitch()net.minecraft.client.player.LocalPlayerorg.rusherhack.core.event.stage.Stageorg.rusherhack.core.event.stage.StagegetStage()Stage.PRE- called before the client sends player update to serverdoublegetX()doublegetY()floatgetYaw()doublegetZ()booleanvoidsetOnGround(boolean onGround) voidsetPitch(float pitch) voidsetX(double x) voidsetY(double y) voidsetYaw(float yaw) voidsetZ(double z) Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelledMethods inherited from class org.rusherhack.core.event.type.Event
setStage
-
Constructor Details
-
EventPlayerUpdate
public EventPlayerUpdate(net.minecraft.client.player.LocalPlayer player)
-
-
Method Details
-
getPlayer
public net.minecraft.client.player.LocalPlayer getPlayer() -
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
isOnGround
public boolean isOnGround() -
setOnGround
public void setOnGround(boolean onGround) -
getStage
public org.rusherhack.core.event.stage.Stage getStage()Stage.PRE- called before the client sends player update to serverStage.POST- called at the end of the local player tick- Specified by:
getStagein interfaceorg.rusherhack.core.event.stage.IStageable- Overrides:
getStagein classorg.rusherhack.core.event.type.Event
-
getPreferredStage
public org.rusherhack.core.event.stage.Stage getPreferredStage()- Overrides:
getPreferredStagein classorg.rusherhack.core.event.type.Event
-