Class EventInput

java.lang.Object
dev.boze.api.event.EventInput

public class EventInput extends Object
EventInput

Event called once a tick after input polling

Use this event to modify player movement input

  • Field Details

    • movementSideways

      public float movementSideways
      Sideways and forwards movement -1F to 1F
    • movementForward

      public float movementForward
    • jumping

      public boolean jumping
      Jumping 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 movement
      movementForward - Current forwards movement
      jumping - If the player is jumping
      sneaking - IF the player is sneaking
      Returns:
      The event instance