Class ToastManager
java.lang.Object
net.minecraft.client.gui.components.toasts.ToastManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final Minecraftprivate @Nullable ToastManager.ToastInstance<NowPlayingToast> private final BitSetprivate final Set<SoundEvent> private static final intprivate final List<ToastManager.ToastInstance<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()private intfindFreeSlotsIndex(int requiredCount) private intdouble<T extends Toast>
@Nullable Tvoidprivate voidvoidrender(GuiGraphics graphics) voidvoidvoidupdate()
-
Field Details
-
SLOT_COUNT
private static final int SLOT_COUNT- See Also:
-
ALL_SLOTS_OCCUPIED
private static final int ALL_SLOTS_OCCUPIED- See Also:
-
minecraft
-
visibleToasts
-
occupiedSlots
-
queued
-
playedToastSounds
-
nowPlayingToast
-
-
Constructor Details
-
ToastManager
-
-
Method Details
-
update
public void update() -
render
-
findFreeSlotsIndex
private int findFreeSlotsIndex(int requiredCount) -
freeSlotCount
private int freeSlotCount() -
getToast
-
clear
public void clear() -
addToast
-
showNowPlayingToast
public void showNowPlayingToast() -
hideNowPlayingToast
public void hideNowPlayingToast() -
getMinecraft
-
getNotificationDisplayTimeMultiplier
public double getNotificationDisplayTimeMultiplier() -
initializeMusicToast
-
setMusicToastDisplayState
-