Package net.minecraft.client.tutorial
Class Tutorial
java.lang.Object
net.minecraft.client.tutorial.Tutorial
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ComponentvoidonDestroyBlock(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) voidCalled when the player pick up an ItemStackvoidonInput(ClientInput input) voidonInventoryAction(ItemStack carriedStack, ItemStack slottedStack, ClickAction action) voidonLookAt(@Nullable ClientLevel level, @Nullable HitResult result) voidonMouse(double velocityX, double velocityY) voidvoidsetStep(TutorialSteps step) Sets a new step to the tutorialvoidstart()voidstop()voidtick()
-
Field Details
-
minecraft
-
instance
-
-
Constructor Details
-
Tutorial
-
-
Method Details
-
onInput
-
onMouse
public void onMouse(double velocityX, double velocityY) -
onLookAt
-
onDestroyBlock
-
onOpenInventory
public void onOpenInventory() -
onGetItem
Called when the player pick up an ItemStack -
stop
public void stop() -
start
public void start() -
tick
public void tick() -
setStep
Sets a new step to the tutorial -
getMinecraft
-
isSurvival
public boolean isSurvival() -
key
-
onInventoryAction
-