类 TutorialManager
- java.lang.Object
-
- net.minecraft.client.tutorial.TutorialManager
-
@Environment(CLIENT) public class TutorialManager extends Object
- Mappings:
Namespace Name official fafintermediary net/minecraft/class_1156named net/minecraft/client/tutorial/TutorialManager
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classTutorialManager.Entry
-
字段概要
字段 修饰符和类型 字段 说明 private BundleTutorialbundleTutorialprivate MinecraftClientclientprivate @Nullable TutorialStepHandlercurrentHandlerprivate List<TutorialManager.Entry>entries
-
构造器概要
构造器 构造器 说明 TutorialManager(MinecraftClient client, GameOptions options)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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(@Nullable ClientWorld world, @Nullable HitResult hitResult)
-
-
-
字段详细资料
-
client
private final MinecraftClient client
- Mappings:
Namespace Name Mixin selector official aLfaf;a:Ldum;intermediary field_5645Lnet/minecraft/class_1156;field_5645:Lnet/minecraft/class_310;named clientLnet/minecraft/client/tutorial/TutorialManager;client:Lnet/minecraft/client/MinecraftClient;
-
currentHandler
@Nullable private @Nullable TutorialStepHandler currentHandler
- Mappings:
Namespace Name Mixin selector official bLfaf;b:Lfag;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
private final List<TutorialManager.Entry> entries
- Mappings:
Namespace Name Mixin selector official cLfaf;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
private final BundleTutorial bundleTutorial
- Mappings:
Namespace Name Mixin selector official dLfaf;d:Lezy;intermediary field_28801Lnet/minecraft/class_1156;field_28801:Lnet/minecraft/class_5829;named bundleTutorialLnet/minecraft/client/tutorial/TutorialManager;bundleTutorial:Lnet/minecraft/client/tutorial/BundleTutorial;
-
-
构造器详细资料
-
TutorialManager
public TutorialManager(MinecraftClient client, GameOptions options)
- Mappings:
Namespace Name Mixin selector official <init>Lfaf;<init>(Ldum;Lduq;)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
-
-
方法详细资料
-
onMovement
public void onMovement(Input input)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lekt;)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 aLfaf;a(DD)Vintermediary method_4908Lnet/minecraft/class_1156;method_4908(DD)Vnamed onUpdateMouseLnet/minecraft/client/tutorial/TutorialManager;onUpdateMouse(DD)V
-
tick
public void tick(@Nullable @Nullable ClientWorld world, @Nullable @Nullable HitResult hitResult)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lehx;Ldly;)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
public void onBlockBreaking(ClientWorld world, BlockPos pos, BlockState state, float progress)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lehx;Lgb;Lcjr;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 aLfaf;a()Vintermediary method_4912Lnet/minecraft/class_1156;method_4912()Vnamed onInventoryOpenedLnet/minecraft/client/tutorial/TutorialManager;onInventoryOpened()V
-
onSlotUpdate
public void onSlotUpdate(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lbpr;)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 bLfaf;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 cLfaf;c()Vintermediary method_4916Lnet/minecraft/class_1156;method_4916()Vnamed createHandlerLnet/minecraft/client/tutorial/TutorialManager;createHandler()V
-
add
public void add(TutorialToast toast, int ticks)
Adds an active tutorial entry to this manager and the corresponding toast to the client's toast manager.- 参数:
toast- the tutorial toastticks- the time the toast will last, in client ticks- Mappings:
Namespace Name Mixin selector official aLfaf;a(Ldxf;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
public void remove(TutorialToast toast)
Removes an active tutorial from this manager if it's present and hides the toast.- 参数:
toast- the tutorial toast- Mappings:
Namespace Name Mixin selector official aLfaf;a(Ldxf;)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 dLfaf;d()Vintermediary method_4917Lnet/minecraft/class_1156;method_4917()Vnamed tickLnet/minecraft/client/tutorial/TutorialManager;tick()V
-
setStep
public void setStep(TutorialStep step)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lfah;)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
public MinecraftClient getClient()
- Mappings:
Namespace Name Mixin selector official eLfaf;e()Ldum;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 fLfaf;f()Zintermediary method_4905Lnet/minecraft/class_1156;method_4905()Znamed isInSurvivalLnet/minecraft/client/tutorial/TutorialManager;isInSurvival()Z
-
keyToText
public static Text keyToText(String name)
- Mappings:
Namespace Name Mixin selector official aLfaf;a(Ljava/lang/String;)Lon;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
public void onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
Called when a player performs apickup slot actionin a screen handler. Used to trigger the bundle tutorial.- 另请参阅:
ClientPlayerEntity.onPickupSlotClick(ItemStack, ItemStack, ClickType)- Mappings:
Namespace Name Mixin selector official aLfaf;a(Lbpr;Lbpr;Lblt;)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
-
-