Class WildfireToast
java.lang.Object
com.wildfire.client.gui.WildfireToast
- All Implemented Interfaces:
IFancyFontRenderer, net.minecraft.client.gui.components.toasts.Toast
public class WildfireToast
extends Object
implements net.minecraft.client.gui.components.toasts.Toast, IFancyFontRenderer
- API Note:
- Only use this on the client side
-
Nested Class Summary
Nested classes/interfaces inherited from interface IFancyFontRenderer
IFancyFontRenderer.TextAlignmentNested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
net.minecraft.client.gui.components.toasts.Toast.Visibility -
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast
DEFAULT_WIDTH, NO_TOKEN, SLOT_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionWildfireToast(net.minecraft.client.gui.Font textRenderer, net.minecraft.network.chat.Component title, @Nullable net.minecraft.network.chat.Component description) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, long fullyVisibleForMs) longTime the gui was opened in ms, or zero if the time is unknown (scrolling text will just use the current time then)net.minecraft.client.gui.components.toasts.Toast.Visibilityintheight()voidhide()voidupdate(net.minecraft.client.gui.components.toasts.ToastManager manager, long time) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFancyFontRenderer
drawCenteredTextWrapped, drawScaledScrollingString, drawScaledScrollingString, drawScaledScrollingString, drawScaledScrollingString, drawScrollingString, drawScrollingString, drawScrollingString, drawScrollingString, drawScrollingString, drawScrollingString, fontMethods inherited from interface net.minecraft.client.gui.components.toasts.Toast
getSoundEvent, getToken, occcupiedSlotCount, onFinishedRendering, width, xPos, yPos
-
Constructor Details
-
WildfireToast
public WildfireToast(net.minecraft.client.gui.Font textRenderer, net.minecraft.network.chat.Component title, @Nullable net.minecraft.network.chat.Component description)
-
-
Method Details
-
getWantedVisibility
public net.minecraft.client.gui.components.toasts.Toast.Visibility getWantedVisibility()- Specified by:
getWantedVisibilityin interfacenet.minecraft.client.gui.components.toasts.Toast
-
update
public void update(net.minecraft.client.gui.components.toasts.ToastManager manager, long time) - Specified by:
updatein interfacenet.minecraft.client.gui.components.toasts.Toast
-
height
public int height()- Specified by:
heightin interfacenet.minecraft.client.gui.components.toasts.Toast
-
extractRenderState
public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, long fullyVisibleForMs) - Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.toasts.Toast
-
hide
public void hide() -
getTimeOpened
public long getTimeOpened()Description copied from interface:IFancyFontRendererTime the gui was opened in ms, or zero if the time is unknown (scrolling text will just use the current time then)- Specified by:
getTimeOpenedin interfaceIFancyFontRenderer
-