Class TutorialToast
java.lang.Object
net.minecraft.client.gui.components.toasts.TutorialToast
- All Implemented Interfaces:
Toast
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate final TutorialToast.Iconsprivate longprivate static final intprivate final List<FormattedCharSequence> private static final intprivate static final intprivate floatstatic final intstatic final intstatic final intstatic final intprivate final booleanprivate floatprivate static final intprivate static final intprivate final intprivate Toast.VisibilityFields inherited from interface Toast
DEFAULT_WIDTH, NO_TOKEN, SLOT_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionTutorialToast(Font font, TutorialToast.Icons icon, Component title, @Nullable Component message, boolean progressable) TutorialToast(Font font, TutorialToast.Icons icon, Component title, @Nullable Component message, boolean progressable, int timeToDisplayMs) -
Method Summary
Modifier and TypeMethodDescriptionprivate intintheight()voidhide()voidrender(GuiGraphics graphics, Font font, long fullyVisibleForMs) voidupdate(ToastManager manager, long fullyVisibleForMs) voidupdateProgress(float progress) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Toast
getSoundEvent, getToken, occcupiedSlotCount, onFinishedRendering, width, xPos, yPos
-
Field Details
-
BACKGROUND_SPRITE
-
PROGRESS_BAR_WIDTH
public static final int PROGRESS_BAR_WIDTH- See Also:
-
PROGRESS_BAR_HEIGHT
public static final int PROGRESS_BAR_HEIGHT- See Also:
-
PROGRESS_BAR_X
public static final int PROGRESS_BAR_X- See Also:
-
PROGRESS_BAR_MARGIN_BOTTOM
public static final int PROGRESS_BAR_MARGIN_BOTTOM- See Also:
-
PADDING_TOP
private static final int PADDING_TOP- See Also:
-
PADDING_BOTTOM
private static final int PADDING_BOTTOM- See Also:
-
LINE_SPACING
private static final int LINE_SPACING- See Also:
-
TEXT_LEFT
private static final int TEXT_LEFT- See Also:
-
TEXT_WIDTH
private static final int TEXT_WIDTH- See Also:
-
icon
-
lines
-
visibility
-
lastSmoothingTime
private long lastSmoothingTime -
smoothedProgress
private float smoothedProgress -
progress
private float progress -
progressable
private final boolean progressable -
timeToDisplayMs
private final int timeToDisplayMs
-
-
Constructor Details
-
TutorialToast
public TutorialToast(Font font, TutorialToast.Icons icon, Component title, @Nullable Component message, boolean progressable, int timeToDisplayMs) -
TutorialToast
public TutorialToast(Font font, TutorialToast.Icons icon, Component title, @Nullable Component message, boolean progressable)
-
-
Method Details