Interface TutorialStepInstance
- All Known Implementing Classes:
CompletedTutorialStepInstance, CraftPlanksTutorialStep, FindTreeTutorialStepInstance, MovementTutorialStepInstance, OpenInventoryTutorialStep, PunchTreeTutorialStepInstance
public interface TutorialStepInstance
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclear()default voidonDestroyBlock(ClientLevel level, BlockPos pos, BlockState state, float percent) Called when a player hits block to destroy it.default voidCalled when the player pick up an ItemStackdefault voidonInput(ClientInput input) default voidonLookAt(ClientLevel level, HitResult hit) Handles blocks and entities hoveringdefault voidonMouse(double xd, double yd) default voiddefault voidtick()
-
Method Details
-
clear
default void clear() -
tick
default void tick() -
onInput
-
onMouse
default void onMouse(double xd, double yd) -
onLookAt
Handles blocks and entities hovering -
onDestroyBlock
Called when a player hits block to destroy it. -
onOpenInventory
default void onOpenInventory() -
onGetItem
Called when the player pick up an ItemStack
-