@Environment(value=CLIENT) public class MovementTutorialStepHandler extends Object implements TutorialStepHandler
Modifier and Type | Field and Description |
---|---|
private static Text |
LOOK_DESCRIPTION |
private static Text |
LOOK_TITLE |
private int |
lookAroundCompletionTicks |
private TutorialToast |
lookAroundToast |
private boolean |
lookedAroundLastTick |
private int |
lookedAroundTicks |
private TutorialManager |
manager |
private static Text |
MOVE_DESCRIPTION |
private static Text |
MOVE_TITLE |
private int |
moveAroundCompletionTicks |
private boolean |
movedLastTick |
private int |
movedTicks |
private TutorialToast |
moveToast |
private int |
ticks |
Constructor and Description |
---|
MovementTutorialStepHandler(TutorialManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
onMouseUpdate(double deltaX,
double deltaY) |
void |
onMovement(Input input) |
void |
tick() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onBlockAttacked, onInventoryOpened, onSlotUpdate, onTarget
private static final Text MOVE_TITLE
private static final Text MOVE_DESCRIPTION
private static final Text LOOK_TITLE
private static final Text LOOK_DESCRIPTION
private final TutorialManager manager
private TutorialToast moveToast
private TutorialToast lookAroundToast
private int ticks
private int movedTicks
private int lookedAroundTicks
private boolean movedLastTick
private boolean lookedAroundLastTick
private int moveAroundCompletionTicks
private int lookAroundCompletionTicks
public MovementTutorialStepHandler(TutorialManager manager)
public void tick()
tick
in interface TutorialStepHandler
public void destroy()
destroy
in interface TutorialStepHandler
public void onMovement(Input input)
onMovement
in interface TutorialStepHandler
public void onMouseUpdate(double deltaX, double deltaY)
onMouseUpdate
in interface TutorialStepHandler