Package net.minecraft.client.toast
Class TutorialToast
java.lang.Object
net.minecraft.client.toast.TutorialToast
- All Implemented Interfaces:
Toast
- Mappings:
Namespace Name official erdintermediary net/minecraft/class_372named net/minecraft/client/toast/TutorialToast
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate floatprivate longprivate floatstatic final intstatic final intstatic final intstatic final intprivate final Textprivate final TutorialToast.Typeprivate Toast.VisibilityFields inherited from interface net.minecraft.client.toast.Toast
BASE_HEIGHT, TEXTURE, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionTutorialToast(TutorialToast.Type type, Text title, @Nullable Text description, boolean hasProgressBar) -
Method Summary
Modifier and TypeMethodDescriptiondraw(DrawContext context, ToastManager manager, long startTime) voidhide()voidsetProgress(float progress) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.toast.Toast
getHeight, getRequiredSpaceCount, getType, getWidth
-
Field Details
-
PROGRESS_BAR_WIDTH
public static final int PROGRESS_BAR_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official aLerd;a:Iintermediary field_32222Lnet/minecraft/class_372;field_32222:Inamed PROGRESS_BAR_WIDTHLnet/minecraft/client/toast/TutorialToast;PROGRESS_BAR_WIDTH:I
-
PROGRESS_BAR_HEIGHT
public static final int PROGRESS_BAR_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official eLerd;e:Iintermediary field_32223Lnet/minecraft/class_372;field_32223:Inamed PROGRESS_BAR_HEIGHTLnet/minecraft/client/toast/TutorialToast;PROGRESS_BAR_HEIGHT:I
-
PROGRESS_BAR_X
public static final int PROGRESS_BAR_X- See Also:
- Mappings:
Namespace Name Mixin selector official fLerd;f:Iintermediary field_32224Lnet/minecraft/class_372;field_32224:Inamed PROGRESS_BAR_XLnet/minecraft/client/toast/TutorialToast;PROGRESS_BAR_X:I
-
PROGRESS_BAR_Y
public static final int PROGRESS_BAR_Y- See Also:
- Mappings:
Namespace Name Mixin selector official gLerd;g:Iintermediary field_32225Lnet/minecraft/class_372;field_32225:Inamed PROGRESS_BAR_YLnet/minecraft/client/toast/TutorialToast;PROGRESS_BAR_Y:I
-
type
- Mappings:
Namespace Name Mixin selector official hLerd;h:Lerd$a;intermediary field_2225Lnet/minecraft/class_372;field_2225:Lnet/minecraft/class_372$class_373;named typeLnet/minecraft/client/toast/TutorialToast;type:Lnet/minecraft/client/toast/TutorialToast$Type;
-
title
- Mappings:
Namespace Name Mixin selector official iLerd;i:Lsw;intermediary field_2224Lnet/minecraft/class_372;field_2224:Lnet/minecraft/class_2561;named titleLnet/minecraft/client/toast/TutorialToast;title:Lnet/minecraft/text/Text;
-
description
- Mappings:
Namespace Name Mixin selector official jLerd;j:Lsw;intermediary field_2226Lnet/minecraft/class_372;field_2226:Lnet/minecraft/class_2561;named descriptionLnet/minecraft/client/toast/TutorialToast;description:Lnet/minecraft/text/Text;
-
visibility
- Mappings:
Namespace Name Mixin selector official kLerd;k:Lerb$a;intermediary field_2227Lnet/minecraft/class_372;field_2227:Lnet/minecraft/class_368$class_369;named visibilityLnet/minecraft/client/toast/TutorialToast;visibility:Lnet/minecraft/client/toast/Toast$Visibility;
-
lastTime
private long lastTime- Mappings:
Namespace Name Mixin selector official lLerd;l:Jintermediary field_2223Lnet/minecraft/class_372;field_2223:Jnamed lastTimeLnet/minecraft/client/toast/TutorialToast;lastTime:J
-
lastProgress
private float lastProgress- Mappings:
Namespace Name Mixin selector official mLerd;m:Fintermediary field_2229Lnet/minecraft/class_372;field_2229:Fnamed lastProgressLnet/minecraft/client/toast/TutorialToast;lastProgress:F
-
progress
private float progress- Mappings:
Namespace Name Mixin selector official nLerd;n:Fintermediary field_2228Lnet/minecraft/class_372;field_2228:Fnamed progressLnet/minecraft/client/toast/TutorialToast;progress:F
-
hasProgressBar
private final boolean hasProgressBar- Mappings:
Namespace Name Mixin selector official oLerd;o:Zintermediary field_2222Lnet/minecraft/class_372;field_2222:Znamed hasProgressBarLnet/minecraft/client/toast/TutorialToast;hasProgressBar:Z
-
-
Constructor Details
-
TutorialToast
public TutorialToast(TutorialToast.Type type, Text title, @Nullable @Nullable Text description, boolean hasProgressBar) - Mappings:
Namespace Name Mixin selector official <init>Lerd;<init>(Lerd$a;Lsw;Lsw;Z)Vintermediary <init>Lnet/minecraft/class_372;<init>(Lnet/minecraft/class_372$class_373;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Z)Vnamed <init>Lnet/minecraft/client/toast/TutorialToast;<init>(Lnet/minecraft/client/toast/TutorialToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Z)V
-
-
Method Details
-
draw
- Specified by:
drawin interfaceToast- Mappings:
Namespace Name Mixin selector official aLerb;a(Leos;Lerc;J)Lerb$a;intermediary method_1986Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;named drawLnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/toast/ToastManager;J)Lnet/minecraft/client/toast/Toast$Visibility;
-
hide
public void hide()- Mappings:
Namespace Name Mixin selector official cLerd;c()Vintermediary method_1993Lnet/minecraft/class_372;method_1993()Vnamed hideLnet/minecraft/client/toast/TutorialToast;hide()V
-
setProgress
public void setProgress(float progress) - Mappings:
Namespace Name Mixin selector official aLerd;a(F)Vintermediary method_1992Lnet/minecraft/class_372;method_1992(F)Vnamed setProgressLnet/minecraft/client/toast/TutorialToast;setProgress(F)V
-