Interface Input


public interface Input
Represents a movement input applied to an entity.
Since:
1.21.3
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether a backward input is applied.
    boolean
    Gets whether a forward input is applied.
    boolean
    Gets whether a jump input is applied.
    boolean
    Gets whether a left input is applied.
    boolean
    Gets whether a right input is applied.
    boolean
    Gets whether a sneak input is applied.
    boolean
    Gets whether a sprint input is applied.
  • Method Details

    • isForward

      boolean isForward()
      Gets whether a forward input is applied.
      Returns:
      forward input
      Since:
      1.21.3
    • isBackward

      boolean isBackward()
      Gets whether a backward input is applied.
      Returns:
      backward input
      Since:
      1.21.3
    • isLeft

      boolean isLeft()
      Gets whether a left input is applied.
      Returns:
      left input
      Since:
      1.21.3
    • isRight

      boolean isRight()
      Gets whether a right input is applied.
      Returns:
      right input
      Since:
      1.21.3
    • isJump

      boolean isJump()
      Gets whether a jump input is applied.
      Returns:
      jump input
      Since:
      1.21.3
    • isSneak

      boolean isSneak()
      Gets whether a sneak input is applied.
      Returns:
      sneak input
      Since:
      1.21.3
    • isSprint

      boolean isSprint()
      Gets whether a sprint input is applied.
      Returns:
      sprint input
      Since:
      1.21.3