Class PageToast

java.lang.Object
com.idark.valoria.client.gui.toast.PageToast
All Implemented Interfaces:
net.minecraft.client.gui.components.toasts.Toast

public class PageToast extends Object implements 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

    Fields
    Modifier and Type
    Field
    Description
    static PageToast
     
    boolean
     
    net.minecraft.resources.ResourceLocation
     

    Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast

    NO_TOKEN, SLOT_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageToast(boolean pUnlock)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    drawText(net.minecraft.client.gui.GuiGraphics gui, String text, int x, int y, boolean Centered)
     
    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
     

    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

      public static PageToast 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 interface net.minecraft.client.gui.components.toasts.Toast
    • width

      public int width()
      Specified by:
      width in interface net.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)