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 Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdvancementHolderprivate static final Identifierstatic final intprivate final ItemStackprivate Toast.VisibilityFields inherited from interface Toast
DEFAULT_WIDTH, NO_TOKEN, SLOT_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable SoundEventprivate booleanvoidrender(GuiGraphics graphics, Font font, long fullyVisibleForMs) voidupdate(ToastManager manager, long fullyVisibleForMs) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Toast
getToken, height, occcupiedSlotCount, onFinishedRendering, width, xPos, yPos
-
Field Details
-
BACKGROUND_SPRITE
-
DISPLAY_TIME
public static final int DISPLAY_TIME- See Also:
-
advancement
-
wantedVisibility
-
iconItem
-
-
Constructor Details
-
AdvancementToast
-
-
Method Details
-
getWantedVisibility
- Specified by:
getWantedVisibilityin interfaceToast
-
update
-
getSoundEvent
- Specified by:
getSoundEventin interfaceToast
-
isChallengeAdvancement
private boolean isChallengeAdvancement() -
render
-