Package net.minecraft.client.tutorial
Class TutorialManager
java.lang.Object
net.minecraft.client.tutorial.TutorialManager
@Environment(CLIENT) public class TutorialManager extends Object
- Mappings:
Namespace Name official evxintermediary net/minecraft/class_1156named net/minecraft/client/tutorial/TutorialManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTutorialManager.Entry -
Field Summary
Fields Modifier and Type Field Description private BundleTutorialbundleTutorialprivate MinecraftClientclientprivate TutorialStepHandlercurrentHandlerprivate List<TutorialManager.Entry>entries -
Constructor Summary
Constructors Constructor Description TutorialManager(MinecraftClient client, GameOptions options) -
Method Summary
Modifier and Type Method Description voidadd(TutorialToast toast, int ticks)Adds an active tutorial entry to this manager and the corresponding toast to the client's toast manager.voidcreateHandler()voiddestroyHandler()MinecraftClientgetClient()booleanisInSurvival()Returns whether the current game mode of the client is survival.static TextkeyToText(String name)voidonBlockBreaking(ClientWorld world, BlockPos pos, BlockState state, float progress)voidonInventoryOpened()voidonMovement(Input input)voidonPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)Called when a player performs apickup slot actionin a screen handler.voidonSlotUpdate(ItemStack stack)voidonUpdateMouse(double deltaX, double deltaY)voidremove(TutorialToast toast)Removes an active tutorial from this manager if it's present and hides the toast.voidsetStep(TutorialStep step)voidtick()voidtick(ClientWorld world, HitResult hitResult)
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official aLevx;a:Ldqk;intermediary field_5645Lnet/minecraft/class_1156;field_5645:Lnet/minecraft/class_310;named clientLnet/minecraft/client/tutorial/TutorialManager;client:Lnet/minecraft/client/MinecraftClient;
-
currentHandler
- Mappings:
Namespace Name Mixin selector official bLevx;b:Levy;intermediary field_5646Lnet/minecraft/class_1156;field_5646:Lnet/minecraft/class_1155;named currentHandlerLnet/minecraft/client/tutorial/TutorialManager;currentHandler:Lnet/minecraft/client/tutorial/TutorialStepHandler;
-
entries
- Mappings:
Namespace Name Mixin selector official cLevx;c:Ljava/util/List;intermediary field_26893Lnet/minecraft/class_1156;field_26893:Ljava/util/List;named entriesLnet/minecraft/client/tutorial/TutorialManager;entries:Ljava/util/List;
-
bundleTutorial
- Mappings:
Namespace Name Mixin selector official dLevx;d:Levq;intermediary field_28801Lnet/minecraft/class_1156;field_28801:Lnet/minecraft/class_5829;named bundleTutorialLnet/minecraft/client/tutorial/TutorialManager;bundleTutorial:Lnet/minecraft/client/tutorial/BundleTutorial;
-
-
Constructor Details
-
TutorialManager
- Mappings:
Namespace Name Mixin selector official <init>Levx;<init>(Ldqk;Ldqo;)Vintermediary <init>Lnet/minecraft/class_1156;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_315;)Vnamed <init>Lnet/minecraft/client/tutorial/TutorialManager;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/option/GameOptions;)V
-
-
Method Details
-
onMovement
- Mappings:
Namespace Name Mixin selector official aLevx;a(Legu;)Vintermediary method_4909Lnet/minecraft/class_1156;method_4909(Lnet/minecraft/class_744;)Vnamed onMovementLnet/minecraft/client/tutorial/TutorialManager;onMovement(Lnet/minecraft/client/input/Input;)V
-
onUpdateMouse
public void onUpdateMouse(double deltaX, double deltaY)- Mappings:
Namespace Name Mixin selector official aLevx;a(DD)Vintermediary method_4908Lnet/minecraft/class_1156;method_4908(DD)Vnamed onUpdateMouseLnet/minecraft/client/tutorial/TutorialManager;onUpdateMouse(DD)V
-
tick
- Mappings:
Namespace Name Mixin selector official aLevx;a(Ledy;Ldis;)Vintermediary method_4911Lnet/minecraft/class_1156;method_4911(Lnet/minecraft/class_638;Lnet/minecraft/class_239;)Vnamed tickLnet/minecraft/client/tutorial/TutorialManager;tick(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/hit/HitResult;)V
-
onBlockBreaking
- Mappings:
Namespace Name Mixin selector official aLevx;a(Ledy;Lfx;Lcht;F)Vintermediary method_4907Lnet/minecraft/class_1156;method_4907(Lnet/minecraft/class_638;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Vnamed onBlockBreakingLnet/minecraft/client/tutorial/TutorialManager;onBlockBreaking(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)V
-
onInventoryOpened
public void onInventoryOpened()- Mappings:
Namespace Name Mixin selector official aLevx;a()Vintermediary method_4912Lnet/minecraft/class_1156;method_4912()Vnamed onInventoryOpenedLnet/minecraft/client/tutorial/TutorialManager;onInventoryOpened()V
-
onSlotUpdate
- Mappings:
Namespace Name Mixin selector official aLevx;a(Lbnv;)Vintermediary method_4906Lnet/minecraft/class_1156;method_4906(Lnet/minecraft/class_1799;)Vnamed onSlotUpdateLnet/minecraft/client/tutorial/TutorialManager;onSlotUpdate(Lnet/minecraft/item/ItemStack;)V
-
destroyHandler
public void destroyHandler()- Mappings:
Namespace Name Mixin selector official bLevx;b()Vintermediary method_4915Lnet/minecraft/class_1156;method_4915()Vnamed destroyHandlerLnet/minecraft/client/tutorial/TutorialManager;destroyHandler()V
-
createHandler
public void createHandler()- Mappings:
Namespace Name Mixin selector official cLevx;c()Vintermediary method_4916Lnet/minecraft/class_1156;method_4916()Vnamed createHandlerLnet/minecraft/client/tutorial/TutorialManager;createHandler()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 official aLevx;a(Ldtd;I)Vintermediary method_31365Lnet/minecraft/class_1156;method_31365(Lnet/minecraft/class_372;I)Vnamed addLnet/minecraft/client/tutorial/TutorialManager;add(Lnet/minecraft/client/toast/TutorialToast;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 official aLevx;a(Ldtd;)Vintermediary method_31364Lnet/minecraft/class_1156;method_31364(Lnet/minecraft/class_372;)Vnamed removeLnet/minecraft/client/tutorial/TutorialManager;remove(Lnet/minecraft/client/toast/TutorialToast;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official dLevx;d()Vintermediary method_4917Lnet/minecraft/class_1156;method_4917()Vnamed tickLnet/minecraft/client/tutorial/TutorialManager;tick()V
-
setStep
- Mappings:
Namespace Name Mixin selector official aLevx;a(Levz;)Vintermediary method_4910Lnet/minecraft/class_1156;method_4910(Lnet/minecraft/class_1157;)Vnamed setStepLnet/minecraft/client/tutorial/TutorialManager;setStep(Lnet/minecraft/client/tutorial/TutorialStep;)V
-
getClient
- Mappings:
Namespace Name Mixin selector official eLevx;e()Ldqk;intermediary method_4914Lnet/minecraft/class_1156;method_4914()Lnet/minecraft/class_310;named getClientLnet/minecraft/client/tutorial/TutorialManager;getClient()Lnet/minecraft/client/MinecraftClient;
-
isInSurvival
public boolean isInSurvival()Returns whether the current game mode of the client is survival.- Mappings:
Namespace Name Mixin selector official fLevx;f()Zintermediary method_4905Lnet/minecraft/class_1156;method_4905()Znamed isInSurvivalLnet/minecraft/client/tutorial/TutorialManager;isInSurvival()Z
-
keyToText
- Mappings:
Namespace Name Mixin selector official aLevx;a(Ljava/lang/String;)Loi;intermediary method_4913Lnet/minecraft/class_1156;method_4913(Ljava/lang/String;)Lnet/minecraft/class_2561;named keyToTextLnet/minecraft/client/tutorial/TutorialManager;keyToText(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
onPickupSlotClick
Called when a player performs apickup slot actionin a screen handler. Used to trigger the bundle tutorial.- See Also:
ClientPlayerEntity.onPickupSlotClick(ItemStack, ItemStack, ClickType)- Mappings:
Namespace Name Mixin selector official aLevx;a(Lbnv;Lbnv;Lbjz;)Vintermediary method_33704Lnet/minecraft/class_1156;method_33704(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)Vnamed onPickupSlotClickLnet/minecraft/client/tutorial/TutorialManager;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)V
-