Package net.minecraftforge.client.event
Class ForgeEventFactoryClient
java.lang.Object
net.minecraftforge.client.event.ForgeEventFactoryClient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <E extends net.minecraftforge.eventbus.api.Event>
Efire
(E e) static void
gatherLayers
(Map<EntityType<?>, EntityRenderer<?>> renderers, Map<PlayerSkin.Model, EntityRenderer<? extends Player>> playerRenderers, EntityRendererProvider.Context context) static void
onMouseButtonPost
(int button, int action, int mods) static boolean
onMouseButtonPre
(int button, int action, int mods) static boolean
onMouseScroll
(MouseHandler mouseHelper, double deltaX, double deltaY) static void
onScreenClose
(Screen screen) static boolean
onScreenMouseClickedPost
(Screen guiScreen, double mouseX, double mouseY, int button, boolean handled) static boolean
onScreenMouseClickedPre
(Screen guiScreen, double mouseX, double mouseY, int button) static void
onScreenMouseDragPost
(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY) static boolean
onScreenMouseDragPre
(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY) static boolean
onScreenMouseReleasedPost
(Screen guiScreen, double mouseX, double mouseY, int button, boolean handled) static boolean
onScreenMouseReleasedPre
(Screen guiScreen, double mouseX, double mouseY, int button) static void
onScreenMouseScrollPost
(Screen guiScreen, double mouseX, double mouseY, double deltaX, double deltaY) static boolean
onScreenMouseScrollPre
(Screen guiScreen, double mouseX, double mouseY, double deltaX, double deltaY) static @Nullable Screen
onScreenOpening
(Screen old, Screen screen) private static boolean
post
(net.minecraftforge.eventbus.api.Event e)
-
Constructor Details
-
ForgeEventFactoryClient
public ForgeEventFactoryClient()
-
-
Method Details
-
post
private static boolean post(net.minecraftforge.eventbus.api.Event e) -
fire
private static <E extends net.minecraftforge.eventbus.api.Event> E fire(E e) -
gatherLayers
public static void gatherLayers(Map<EntityType<?>, EntityRenderer<?>> renderers, Map<PlayerSkin.Model, EntityRenderer<? extends Player>> playerRenderers, EntityRendererProvider.Context context) -
onScreenMouseReleasedPre
public static boolean onScreenMouseReleasedPre(Screen guiScreen, double mouseX, double mouseY, int button) -
onScreenMouseReleasedPost
public static boolean onScreenMouseReleasedPost(Screen guiScreen, double mouseX, double mouseY, int button, boolean handled) -
onScreenMouseClickedPre
public static boolean onScreenMouseClickedPre(Screen guiScreen, double mouseX, double mouseY, int button) -
onScreenMouseClickedPost
public static boolean onScreenMouseClickedPost(Screen guiScreen, double mouseX, double mouseY, int button, boolean handled) -
onMouseButtonPre
public static boolean onMouseButtonPre(int button, int action, int mods) -
onMouseButtonPost
public static void onMouseButtonPost(int button, int action, int mods) -
onScreenMouseScrollPre
public static boolean onScreenMouseScrollPre(Screen guiScreen, double mouseX, double mouseY, double deltaX, double deltaY) -
onScreenMouseScrollPost
public static void onScreenMouseScrollPost(Screen guiScreen, double mouseX, double mouseY, double deltaX, double deltaY) -
onMouseScroll
-
onScreenMouseDragPre
public static boolean onScreenMouseDragPre(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY) -
onScreenMouseDragPost
public static void onScreenMouseDragPost(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY) -
onScreenOpening
-
onScreenClose
-