Class AdvancementToast
java.lang.Object
net.minecraft.client.gui.components.toasts.AdvancementToast
- All Implemented Interfaces:
Toast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdvancementHolderprivate static final ResourceLocationstatic final intprivate Toast.VisibilityFields inherited from interface net.minecraft.client.gui.components.toasts.Toast
DEFAULT_WIDTH, NO_TOKEN, SLOT_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanvoidrender(GuiGraphics guiGraphics, Font font, long visibilityTime) voidupdate(ToastManager toastManager, long visibilityTime) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.toasts.Toast
getToken, height, occcupiedSlotCount, onFinishedRendering, width, xPos, yPos
-
Field Details
-
BACKGROUND_SPRITE
-
DISPLAY_TIME
public static final int DISPLAY_TIME- See Also:
-
advancement
-
wantedVisibility
-
-
Constructor Details
-
AdvancementToast
-
-
Method Details
-
getWantedVisibility
- Specified by:
getWantedVisibilityin interfaceToast
-
update
-
getSoundEvent
- Specified by:
getSoundEventin interfaceToast
-
isChallengeAdvancement
private boolean isChallengeAdvancement() -
render
-