Package dev.boze.api.event
Class EventInput
java.lang.Object
dev.boze.api.event.EventInput
EventInput
Event called once a tick after input polling
Use this event to modify player movement input
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Jumping and sneaking flagsfloat
float
Sideways and forwards movement -1F to 1Fboolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventInput
get
(float movementSideways, float movementForward, boolean jumping, boolean sneaking) Gets the event instance - this is called by Boze, and should not be called by addons
-
Field Details
-
movementSideways
public float movementSidewaysSideways and forwards movement -1F to 1F -
movementForward
public float movementForward -
jumping
public boolean jumpingJumping and sneaking flags -
sneaking
public boolean sneaking
-
-
Constructor Details
-
EventInput
public EventInput()
-
-
Method Details
-
get
public static EventInput get(float movementSideways, float movementForward, boolean jumping, boolean sneaking) Gets the event instance - this is called by Boze, and should not be called by addons- Parameters:
movementSideways
- Current sideways movementmovementForward
- Current forwards movementjumping
- If the player is jumpingsneaking
- IF the player is sneaking- Returns:
- The event instance
-