@Environment(value=CLIENT) public class FindTreeTutorialStepHandler extends Object implements TutorialStepHandler
| Modifier and Type | Field and Description |
|---|---|
private static Text |
DESCRIPTION |
private int |
ticks |
private static Text |
TITLE |
private TutorialToast |
toast |
private static Set<Block> |
TREE_BLOCKS |
private TutorialManager |
tutorialManager |
| Constructor and Description |
|---|
FindTreeTutorialStepHandler(TutorialManager tutorialManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
static boolean |
hasBrokenTreeBlocks(ClientPlayerEntity player) |
void |
onSlotUpdate(ItemStack stack) |
void |
onTarget(ClientWorld world,
HitResult hitResult) |
void |
tick() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBlockAttacked, onInventoryOpened, onMouseUpdate, onMovementprivate static final Text TITLE
private static final Text DESCRIPTION
private final TutorialManager tutorialManager
private TutorialToast toast
private int ticks
public FindTreeTutorialStepHandler(TutorialManager tutorialManager)
public void tick()
tick in interface TutorialStepHandlerpublic void destroy()
destroy in interface TutorialStepHandlerpublic void onTarget(ClientWorld world, HitResult hitResult)
onTarget in interface TutorialStepHandlerpublic void onSlotUpdate(ItemStack stack)
onSlotUpdate in interface TutorialStepHandlerpublic static boolean hasBrokenTreeBlocks(ClientPlayerEntity player)