Class CursorHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CursorHelper
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCursorXPosTranslatedFromGUIXPos(net.minecraft.client.Minecraft mc, float x) static intgetCursorXPosTranslatedToGUIXPos(net.minecraft.client.Minecraft mc) static intgetCursorYPosTranslatedFromGUIYPos(net.minecraft.client.Minecraft mc, float y) static intgetCursorYPosTranslatedToGUIYPos(net.minecraft.client.Minecraft mc) static voidstatic voidonGuiOpen(net.neoforged.neoforge.client.event.ScreenEvent.Init.Pre event) static voidonInitGui(net.neoforged.neoforge.client.event.ScreenEvent.Init.Pre event) static voidstatic void
-
Field Details
-
DEFAULT_CURSOR
-
CROSS_CURSOR
-
HAND_CURSOR
-
VERTICAL_ARROW_CURSOR
-
TRANSPARENT_CURSOR
-
BATTLE_CURSOR
-
-
Constructor Details
-
CursorHelper
public CursorHelper()
-
-
Method Details
-
setCursor
-
hideCursor
public static void hideCursor() -
resetCursor
public static void resetCursor() -
onInitGui
public static void onInitGui(net.neoforged.neoforge.client.event.ScreenEvent.Init.Pre event) -
onGuiOpen
public static void onGuiOpen(net.neoforged.neoforge.client.event.ScreenEvent.Init.Pre 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)
-