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 net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocation
private final TutorialToast.Icons
private long
private static final int
private final List
<FormattedCharSequence> private static final int
private static final int
private float
static final int
static final int
static final int
static final int
private final boolean
private float
private static final int
private static final int
private final int
private Toast.Visibility
Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast
DEFAULT_WIDTH, NO_TOKEN, SLOT_HEIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionTutorialToast
(Font p_382988_, TutorialToast.Icons p_94958_, Component p_94959_, Component p_94960_, boolean p_94961_) TutorialToast
(Font p_383078_, TutorialToast.Icons p_365013_, Component p_363481_, Component p_365235_, boolean p_365276_, int p_363245_) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
int
height()
void
hide()
void
render
(GuiGraphics p_283197_, Font p_364452_, long p_281902_) void
update
(ToastManager p_361676_, long p_362771_) void
updateProgress
(float p_94963_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.toasts.Toast
getSoundEvent, getToken, occcupiedSlotCount, width
-
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 p_383078_, TutorialToast.Icons p_365013_, Component p_363481_, @Nullable Component p_365235_, boolean p_365276_, int p_363245_) -
TutorialToast
public TutorialToast(Font p_382988_, TutorialToast.Icons p_94958_, Component p_94959_, @Nullable Component p_94960_, boolean p_94961_)
-
-
Method Details
-
getWantedVisibility
- Specified by:
getWantedVisibility
in interfaceToast
-
update
-
height
public int height() -
contentHeight
private int contentHeight() -
render
-
hide
public void hide() -
updateProgress
public void updateProgress(float p_94963_)
-