@Environment(value=CLIENT) public class FindTreeTutorialStepHandler extends Object implements TutorialStepHandler
Modifier and Type | Field and Description |
---|---|
private static Text |
DESCRIPTION |
private TutorialManager |
manager |
private int |
ticks |
private static Text |
TITLE |
private TutorialToast |
toast |
private static Set<Block> |
TREE_BLOCKS |
Constructor and Description |
---|
FindTreeTutorialStepHandler(TutorialManager manager) |
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, wait
onBlockAttacked, onInventoryOpened, onMouseUpdate, onMovement
private static final Text TITLE
private static final Text DESCRIPTION
private final TutorialManager manager
private TutorialToast toast
private int ticks
public FindTreeTutorialStepHandler(TutorialManager manager)
public void tick()
tick
in interface TutorialStepHandler
public void destroy()
destroy
in interface TutorialStepHandler
public void onTarget(ClientWorld world, HitResult hitResult)
onTarget
in interface TutorialStepHandler
public void onSlotUpdate(ItemStack stack)
onSlotUpdate
in interface TutorialStepHandler
public static boolean hasBrokenTreeBlocks(ClientPlayerEntity player)