Package net.minecraft.client.tutorial
Class Tutorial
java.lang.Object
net.minecraft.client.tutorial.Tutorial
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BundleTutorial
private TutorialStepInstance
private final Minecraft
private final List
<Tutorial.TimedToast> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTimedToast
(TutorialToast toast, int durationTicks) boolean
static Component
void
onDestroyBlock
(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) void
Called when the player pick up an ItemStackvoid
void
onInventoryAction
(ItemStack carriedStack, ItemStack slottedStack, ClickAction action) void
onLookAt
(ClientLevel level, HitResult result) void
onMouse
(double velocityX, double velocityY) void
void
removeTimedToast
(TutorialToast toast) void
setStep
(TutorialSteps step) Sets a new step to the tutorialvoid
start()
void
stop()
void
tick()
-
Field Details
-
minecraft
-
instance
-
timedToasts
-
bundleTutorial
-
-
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() -
addTimedToast
-
removeTimedToast
-
tick
public void tick() -
setStep
Sets a new step to the tutorial -
getMinecraft
-
isSurvival
public boolean isSurvival() -
key
-
onInventoryAction
-