net.minecraft.client.gui.components.toasts

public class NowPlayingToast

implements Toast

fzy
net.minecraft.client.gui.components.toasts.NowPlayingToast
net.minecraft.class_11469
net.minecraft.client.toast.NowPlayingToast

Field summary

Modifier and TypeField
private static final ResourceLocation
a
NOW_PLAYING_BACKGROUND_SPRITE
field_60723
TEXTURE
private static final ResourceLocation
e
MUSIC_NOTES_SPRITE
field_60724
MUSIC_NOTES_ICON
private static final int
f
PADDING
field_60725
MARGIN
private static final int
g
MUSIC_NOTES_SIZE
field_60726
MUSIC_NOTES_ICON_SIZE
private static final int
h
HEIGHT
field_60727
field_60727
private static final int
i
MUSIC_NOTES_SPACE
field_60728
field_60728
private static final int
j
VISIBILITY_DURATION
field_60729
VISIBILITY_DURATION
private static final int
k
TEXT_COLOR
field_60730
TEXT_COLOR
private static final long
l
MUSIC_COLOR_CHANGE_FREQUENCY_MS
field_60731
MUSIC_NOTE_COLOR_CHANGE_INTERVAL
private static int
m
musicNoteColorTick
field_60732
musicNoteColorChanges
private static long
n
lastMusicNoteColorChange
field_60733
lastMusicNoteColorChangeTime
private static int
o
musicNoteColor
field_60734
musicNotesIconColor
private boolean
p
updateToast
field_60871
showing
private double
q
notificationDisplayTimeMultiplier
field_60872
displayTimeMultiplier
private static String
r
currentSong
field_60735
musicTranslationKey
private final Minecraft
s
minecraft
field_60736
client
private Toast$Visibility
t
wantedVisibility
field_60737
visibility

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(fxa arg0, fwy arg1)
renderToast(GuiGraphics arg0, Font arg1)
method_71810(class_332 arg0, class_327 arg1)
draw(DrawContext context, TextRenderer textRenderer)
public static void
c()
tickMusicNotes()
method_71814()
tick()
private static Component
a(String arg0)
getNowPlayingString(String arg0)
method_71812(String arg0)
getMusicText(String translationKey)
public void
a(fuh arg0)
showToast(Options arg0)
method_71994(class_315 arg0)
show(GameOptions options)
public void
a(gac arg0, long arg1)
update(ToastManager arg0, long arg1)
method_61989(class_374 arg0, long arg1)
update(ToastManager arg0, long arg1)
public void
a(fxa arg0, fwy arg1, long arg2)
render(GuiGraphics arg0, Font arg1, long arg2)
method_1986(class_332 arg0, class_327 arg1, long arg2)
draw(DrawContext arg0, TextRenderer arg1, long arg2)
public void
d()
onFinishedRendering()
method_71995()
onFinishedRendering()
public int
e()
width()
method_29049()
getWidth()
private static int
a(String arg0, fwy arg1)
getWidth(String arg0, Font arg1)
method_71813(String arg0, class_327 arg1)
getMusicTextWidth(String translationKey, TextRenderer textRenderer)
public int
f()
height()
method_29050()
getHeight()
public float
a(int arg0, float arg1)
xPos(int arg0, float arg1)
method_71809(int arg0, float arg1)
getXPos(int arg0, float arg1)
public float
a(int arg0)
yPos(int arg0)
method_71808(int arg0)
getYPos(int arg0)
public Toast$Visibility
a()
getWantedVisibility()
method_61988()
getVisibility()
public void
a(gab$a arg0)
setWantedVisibility(Toast$Visibility arg0)
method_71811(class_368$class_369 arg0)
setVisibility(Toast$Visibility visibility)