Class PageToast
java.lang.Object
com.idark.valoria.client.gui.toast.PageToast
- All Implemented Interfaces:
net.minecraft.client.gui.components.toasts.Toast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
net.minecraft.client.gui.components.toasts.Toast.Visibility
-
Field Summary
Modifier and TypeFieldDescriptionstatic PageToast
boolean
net.minecraft.resources.ResourceLocation
Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
drawWrappingText
(net.minecraft.client.gui.GuiGraphics gui, String text, int x, int y, int wrap, boolean Centered) net.minecraft.client.gui.components.toasts.Toast.Visibility
render
(net.minecraft.client.gui.GuiGraphics pGuiGraphics, net.minecraft.client.gui.components.toasts.ToastComponent pToastComponent, long pTimeSinceLastVisible) int
width()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.toasts.Toast
getToken, height, slotCount
-
Field Details
-
instance
-
TEXTURE
public net.minecraft.resources.ResourceLocation TEXTURE -
pUnlock
public boolean pUnlock
-
-
Constructor Details
-
PageToast
public PageToast(boolean pUnlock)
-
-
Method Details
-
render
public net.minecraft.client.gui.components.toasts.Toast.Visibility render(net.minecraft.client.gui.GuiGraphics pGuiGraphics, net.minecraft.client.gui.components.toasts.ToastComponent pToastComponent, long pTimeSinceLastVisible) - Specified by:
render
in interfacenet.minecraft.client.gui.components.toasts.Toast
-
width
public int width()- Specified by:
width
in interfacenet.minecraft.client.gui.components.toasts.Toast
-
drawText
public static void drawText(net.minecraft.client.gui.GuiGraphics gui, String text, int x, int y, boolean Centered) -
drawWrappingText
public static void drawWrappingText(net.minecraft.client.gui.GuiGraphics gui, String text, int x, int y, int wrap, boolean Centered)
-