@Environment(value=CLIENT) public class Input extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
jumping |
float |
movementForward |
float |
movementSideways |
boolean |
pressingBack |
boolean |
pressingForward |
boolean |
pressingLeft |
boolean |
pressingRight |
boolean |
sneaking |
Constructor and Description |
---|
Input() |
Modifier and Type | Method and Description |
---|---|
Vec2f |
getMovementInput() |
boolean |
hasForwardMovement() |
void |
tick(boolean slowDown) |
public float movementSideways
public float movementForward
public boolean pressingForward
public boolean pressingBack
public boolean pressingLeft
public boolean pressingRight
public boolean jumping
public boolean sneaking
public void tick(boolean slowDown)
public Vec2f getMovementInput()
public boolean hasForwardMovement()