Package net.minecraft.client.tutorial
Interface TutorialStepInstance
- All Known Implementing Classes:
CompletedTutorialStepInstance
,CraftPlanksTutorialStep
,FindTreeTutorialStepInstance
,MovementTutorialStepInstance
,OpenInventoryTutorialStep
,PunchTreeTutorialStepInstance
public interface TutorialStepInstance
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
clear()
default void
onDestroyBlock
(ClientLevel pLevel, BlockPos pPos, BlockState pState, float pDiggingStage) Called when a player hits block to destroy it.default void
Called when the player pick up an ItemStackdefault void
Handles the player movementdefault void
onLookAt
(ClientLevel pLevel, HitResult pResult) Handles blocks and entities hoveringdefault void
onMouse
(double pVelocityX, double pVelocityY) default void
default void
tick()
-
Method Details
-
clear
default void clear() -
tick
default void tick() -
onInput
Handles the player movement -
onMouse
default void onMouse(double pVelocityX, double pVelocityY) -
onLookAt
Handles blocks and entities hovering -
onDestroyBlock
default void onDestroyBlock(ClientLevel pLevel, BlockPos pPos, BlockState pState, float pDiggingStage) Called when a player hits block to destroy it. -
onOpenInventory
default void onOpenInventory() -
onGetItem
Called when the player pick up an ItemStack
-