Package net.minecraft.client.tutorial
Class TutorialManager
java.lang.Object
net.minecraft.client.tutorial.TutorialManager
- Mappings:
Namespace Name named net/minecraft/client/tutorial/TutorialManager
intermediary net/minecraft/class_1156
official gva
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BundleTutorial
private final MinecraftClient
private @Nullable TutorialStepHandler
private final List
<TutorialManager.Entry> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TutorialToast toast, int ticks) Adds an active tutorial entry to this manager and the corresponding toast to the client's toast manager.void
void
boolean
Returns whether the current game mode of the client is survival.static Text
void
onBlockBreaking
(ClientWorld world, BlockPos pos, BlockState state, float progress) void
void
onMovement
(Input input) void
onPickupSlotClick
(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot action
in a screen handler.void
onSlotUpdate
(ItemStack stack) void
onUpdateMouse
(double deltaX, double deltaY) void
remove
(TutorialToast toast) Removes an active tutorial from this manager if it's present and hides the toast.void
setStep
(TutorialStep step) void
tick()
void
tick
(@Nullable ClientWorld world, @Nullable HitResult hitResult)
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/tutorial/TutorialManager;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_5645
Lnet/minecraft/class_1156;field_5645:Lnet/minecraft/class_310;
official a
Lgva;a:Lffh;
-
currentHandler
- Mappings:
Namespace Name Mixin selector named currentHandler
Lnet/minecraft/client/tutorial/TutorialManager;currentHandler:Lnet/minecraft/client/tutorial/TutorialStepHandler;
intermediary field_5646
Lnet/minecraft/class_1156;field_5646:Lnet/minecraft/class_1155;
official b
Lgva;b:Lgvb;
-
entries
- Mappings:
Namespace Name Mixin selector named entries
Lnet/minecraft/client/tutorial/TutorialManager;entries:Ljava/util/List;
intermediary field_26893
Lnet/minecraft/class_1156;field_26893:Ljava/util/List;
official c
Lgva;c:Ljava/util/List;
-
bundleTutorial
- Mappings:
Namespace Name Mixin selector named bundleTutorial
Lnet/minecraft/client/tutorial/TutorialManager;bundleTutorial:Lnet/minecraft/client/tutorial/BundleTutorial;
intermediary field_28801
Lnet/minecraft/class_1156;field_28801:Lnet/minecraft/class_5829;
official d
Lgva;d:Lgut;
-
-
Constructor Details
-
TutorialManager
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/tutorial/TutorialManager;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/option/GameOptions;)V
intermediary <init>
Lnet/minecraft/class_1156;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_315;)V
official <init>
Lgva;<init>(Lffh;Lffl;)V
-
-
Method Details
-
onMovement
- Mappings:
Namespace Name Mixin selector named onMovement
Lnet/minecraft/client/tutorial/TutorialManager;onMovement(Lnet/minecraft/client/input/Input;)V
intermediary method_4909
Lnet/minecraft/class_1156;method_4909(Lnet/minecraft/class_744;)V
official a
Lgva;a(Lgcq;)V
-
onUpdateMouse
public void onUpdateMouse(double deltaX, double deltaY) - Mappings:
Namespace Name Mixin selector named onUpdateMouse
Lnet/minecraft/client/tutorial/TutorialManager;onUpdateMouse(DD)V
intermediary method_4908
Lnet/minecraft/class_1156;method_4908(DD)V
official a
Lgva;a(DD)V
-
tick
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/tutorial/TutorialManager;tick(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/hit/HitResult;)V
intermediary method_4911
Lnet/minecraft/class_1156;method_4911(Lnet/minecraft/class_638;Lnet/minecraft/class_239;)V
official a
Lgva;a(Lfxx;Levr;)V
-
onBlockBreaking
- Mappings:
Namespace Name Mixin selector named onBlockBreaking
Lnet/minecraft/client/tutorial/TutorialManager;onBlockBreaking(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)V
intermediary method_4907
Lnet/minecraft/class_1156;method_4907(Lnet/minecraft/class_638;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)V
official a
Lgva;a(Lfxx;Liz;Ldse;F)V
-
onInventoryOpened
public void onInventoryOpened()- Mappings:
Namespace Name Mixin selector named onInventoryOpened
Lnet/minecraft/client/tutorial/TutorialManager;onInventoryOpened()V
intermediary method_4912
Lnet/minecraft/class_1156;method_4912()V
official a
Lgva;a()V
-
onSlotUpdate
- Mappings:
Namespace Name Mixin selector named onSlotUpdate
Lnet/minecraft/client/tutorial/TutorialManager;onSlotUpdate(Lnet/minecraft/item/ItemStack;)V
intermediary method_4906
Lnet/minecraft/class_1156;method_4906(Lnet/minecraft/class_1799;)V
official a
Lgva;a(Lcur;)V
-
destroyHandler
public void destroyHandler()- Mappings:
Namespace Name Mixin selector named destroyHandler
Lnet/minecraft/client/tutorial/TutorialManager;destroyHandler()V
intermediary method_4915
Lnet/minecraft/class_1156;method_4915()V
official b
Lgva;b()V
-
createHandler
public void createHandler()- Mappings:
Namespace Name Mixin selector named createHandler
Lnet/minecraft/client/tutorial/TutorialManager;createHandler()V
intermediary method_4916
Lnet/minecraft/class_1156;method_4916()V
official c
Lgva;c()V
-
add
Adds an active tutorial entry to this manager and the corresponding toast to the client's toast manager.- Parameters:
toast
- the tutorial toastticks
- the time the toast will last, in client ticks- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/client/tutorial/TutorialManager;add(Lnet/minecraft/client/toast/TutorialToast;I)V
intermediary method_31365
Lnet/minecraft/class_1156;method_31365(Lnet/minecraft/class_372;I)V
official a
Lgva;a(Lfjr;I)V
-
remove
Removes an active tutorial from this manager if it's present and hides the toast.- Parameters:
toast
- the tutorial toast- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/client/tutorial/TutorialManager;remove(Lnet/minecraft/client/toast/TutorialToast;)V
intermediary method_31364
Lnet/minecraft/class_1156;method_31364(Lnet/minecraft/class_372;)V
official a
Lgva;a(Lfjr;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/tutorial/TutorialManager;tick()V
intermediary method_4917
Lnet/minecraft/class_1156;method_4917()V
official d
Lgva;d()V
-
setStep
- Mappings:
Namespace Name Mixin selector named setStep
Lnet/minecraft/client/tutorial/TutorialManager;setStep(Lnet/minecraft/client/tutorial/TutorialStep;)V
intermediary method_4910
Lnet/minecraft/class_1156;method_4910(Lnet/minecraft/class_1157;)V
official a
Lgva;a(Lgvc;)V
-
getClient
- Mappings:
Namespace Name Mixin selector named getClient
Lnet/minecraft/client/tutorial/TutorialManager;getClient()Lnet/minecraft/client/MinecraftClient;
intermediary method_4914
Lnet/minecraft/class_1156;method_4914()Lnet/minecraft/class_310;
official e
Lgva;e()Lffh;
-
isInSurvival
public boolean isInSurvival()Returns whether the current game mode of the client is survival.- Returns:
- whether the current game mode of the client is survival
- Mappings:
Namespace Name Mixin selector named isInSurvival
Lnet/minecraft/client/tutorial/TutorialManager;isInSurvival()Z
intermediary method_4905
Lnet/minecraft/class_1156;method_4905()Z
official f
Lgva;f()Z
-
keyToText
- Mappings:
Namespace Name Mixin selector named keyToText
Lnet/minecraft/client/tutorial/TutorialManager;keyToText(Ljava/lang/String;)Lnet/minecraft/text/Text;
intermediary method_4913
Lnet/minecraft/class_1156;method_4913(Ljava/lang/String;)Lnet/minecraft/class_2561;
official a
Lgva;a(Ljava/lang/String;)Lxp;
-
onPickupSlotClick
Called when a player performs apickup slot action
in a screen handler. Used to trigger the bundle tutorial.- See Also:
- Mappings:
Namespace Name Mixin selector named onPickupSlotClick
Lnet/minecraft/client/tutorial/TutorialManager;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)V
intermediary method_33704
Lnet/minecraft/class_1156;method_33704(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)V
official a
Lgva;a(Lcur;Lcur;Lcqe;)V
-