Class MeteorToast
java.lang.Object
meteordevelopment.meteorclient.utils.render.MeteorToast
- All Implemented Interfaces:
net.minecraft.client.toast.Toast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
net.minecraft.client.toast.Toast.Visibility -
Field Summary
FieldsFields inherited from interface net.minecraft.client.toast.Toast
BASE_HEIGHT, BASE_WIDTH, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMeteorToast(@Nullable net.minecraft.item.Item item, @NotNull String title, @Nullable String text) MeteorToast(@Nullable net.minecraft.item.Item item, @NotNull String title, @Nullable String text, long duration) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.font.TextRenderer textRenderer, long startTime) net.minecraft.client.sound.SoundInstancegetSound()net.minecraft.client.toast.Toast.VisibilityvoidsetDuration(long duration) voidsetIcon(@Nullable net.minecraft.item.Item item) voidvoidvoidupdate(net.minecraft.client.toast.ToastManager manager, long time) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.toast.Toast
getHeight, getRequiredSpaceCount, getSoundEvent, getType, getWidth
-
Field Details
-
TITLE_COLOR
public static final int TITLE_COLOR -
TEXT_COLOR
public static final int TEXT_COLOR
-
-
Constructor Details
-
MeteorToast
-
MeteorToast
-
-
Method Details
-
getVisibility
public net.minecraft.client.toast.Toast.Visibility getVisibility()- Specified by:
getVisibilityin interfacenet.minecraft.client.toast.Toast
-
update
public void update(net.minecraft.client.toast.ToastManager manager, long time) - Specified by:
updatein interfacenet.minecraft.client.toast.Toast
-
draw
public void draw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.font.TextRenderer textRenderer, long startTime) - Specified by:
drawin interfacenet.minecraft.client.toast.Toast
-
setIcon
public void setIcon(@Nullable @Nullable net.minecraft.item.Item item) -
setTitle
-
setText
-
setDuration
public void setDuration(long duration) -
getSound
public net.minecraft.client.sound.SoundInstance getSound()
-