Class CursorHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CursorHelper

public class CursorHelper extends Object
  • Field Details

    • DEFAULT_CURSOR

      public static final Supplier<Long> DEFAULT_CURSOR
    • CROSS_CURSOR

      public static final Supplier<Long> CROSS_CURSOR
    • HAND_CURSOR

      public static final Supplier<Long> HAND_CURSOR
    • VERTICAL_ARROW_CURSOR

      public static final Supplier<Long> VERTICAL_ARROW_CURSOR
    • TRANSPARENT_CURSOR

      public static final Supplier<Long> TRANSPARENT_CURSOR
    • BATTLE_CURSOR

      public static final Supplier<Long> BATTLE_CURSOR
  • Constructor Details

    • CursorHelper

      public CursorHelper()
  • Method Details

    • setCursor

      public static void setCursor(Supplier<Long> pointer)
    • hideCursor

      public static void hideCursor()
    • resetCursor

      public static void resetCursor()
    • onInitGui

      public static void onInitGui(net.minecraftforge.client.event.ScreenEvent.Init event)
    • onGuiOpen

      public static void onGuiOpen(net.minecraftforge.client.event.ScreenEvent.Init event)
    • getCursorXPosTranslatedToGUIXPos

      public static int getCursorXPosTranslatedToGUIXPos(net.minecraft.client.Minecraft mc)
    • getCursorYPosTranslatedToGUIYPos

      public static int getCursorYPosTranslatedToGUIYPos(net.minecraft.client.Minecraft mc)
    • getCursorXPosTranslatedFromGUIXPos

      public static int getCursorXPosTranslatedFromGUIXPos(net.minecraft.client.Minecraft mc, float x)
    • getCursorYPosTranslatedFromGUIYPos

      public static int getCursorYPosTranslatedFromGUIYPos(net.minecraft.client.Minecraft mc, float y)