Class ForgeEventFactoryClient

java.lang.Object
net.minecraftforge.client.event.ForgeEventFactoryClient

@Internal public final class ForgeEventFactoryClient extends Object
  • Field Details

  • Constructor Details

    • ForgeEventFactoryClient

      private ForgeEventFactoryClient()
  • Method Details

    • post

      private static boolean post(net.minecraftforge.eventbus.api.Event e)
      Post an event to the MinecraftForge.EVENT_BUS
      Returns:
      true if the event is Cancelable and has been canceled
    • fire

      private static <E extends net.minecraftforge.eventbus.api.Event> E fire(E e)
      Post an event to the MinecraftForge.EVENT_BUS, then return the event object
      Returns:
      the event object passed in and possibly modified by listeners
    • postModBus

      private static <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> void postModBus(T e)
      Post an event to the ModLoader.get() event bus
    • onGatherLayers

      public static void onGatherLayers(Map<EntityType<?>,EntityRenderer<?>> renderers, Map<PlayerSkin.Model,EntityRenderer<? extends Player>> playerRenderers, EntityRendererProvider.Context context)
    • onRegisterShaders

      public static void onRegisterShaders(ResourceProvider resourceProvider, List<com.mojang.datafixers.util.Pair<ShaderInstance,Consumer<ShaderInstance>>> shaderList)
    • onScreenMouseReleased

      public static void onScreenMouseReleased(boolean[] state, Screen screen, double mouseX, double mouseY, int button)
    • onScreenMouseClicked

      public static void onScreenMouseClicked(boolean[] state, Screen screen, double mouseX, double mouseY, int button)
    • 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

      public static boolean onMouseScroll(MouseHandler mouseHelper, double deltaX, double deltaY)
    • 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

      @Nullable public static @Nullable Screen onScreenOpening(Screen old, Screen screen)
    • onScreenClose

      public static void onScreenClose(Screen screen)
    • onPlaySoundSource

      public static void onPlaySoundSource(SoundEngine engine, SoundInstance sound, Channel channel)
    • onPlayStreamingSource

      public static void onPlayStreamingSource(SoundEngine engine, SoundInstance sound, Channel channel)
    • onScreenshot

      public static ScreenshotEvent onScreenshot(NativeImage image, File screenshotFile)
    • onScreenKeyPressedPre

      public static boolean onScreenKeyPressedPre(Screen screen, int keyCode, int scanCode, int modifiers)
    • onScreenKeyPressedPost

      public static boolean onScreenKeyPressedPost(Screen screen, int keyCode, int scanCode, int modifiers)
    • onScreenKeyReleasedPre

      public static boolean onScreenKeyReleasedPre(Screen screen, int keyCode, int scanCode, int modifiers)
    • onScreenKeyReleasedPost

      public static boolean onScreenKeyReleasedPost(Screen screen, int keyCode, int scanCode, int modifiers)
    • onScreenCharTypedPre

      public static boolean onScreenCharTypedPre(Screen screen, char codePoint, int modifiers)
    • onScreenCharTypedPost

      public static boolean onScreenCharTypedPost(Screen screen, char codePoint, int modifiers)
    • onClickInput

      public static InputEvent.InteractionKeyMappingTriggered onClickInput(int button, KeyMapping keyBinding, InteractionHand hand)
    • onContainerRenderBackground

      public static void onContainerRenderBackground(AbstractContainerScreen<?> screen, GuiGraphics graphics, int mouseX, int mouseY)
    • onContainerRenderForeground

      public static void onContainerRenderForeground(AbstractContainerScreen<?> screen, GuiGraphics graphics, int mouseX, int mouseY)
    • firePlayerLogin

      public static void firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager)
    • firePlayerLogout

      public static void firePlayerLogout(@Nullable @Nullable MultiPlayerGameMode pc, @Nullable @Nullable LocalPlayer player)
    • firePlayerRespawn

      public static void firePlayerRespawn(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager)
    • fireComputeFov

      public static ViewportEvent.ComputeFov fireComputeFov(GameRenderer renderer, Camera camera, double partialTick, double fov, boolean usedConfiguredFov)
    • fireComputeCameraAngles

      public static ViewportEvent.ComputeCameraAngles fireComputeCameraAngles(GameRenderer renderer, Camera camera, float partial)
    • onRenderLivingPre

      public static <T extends LivingEntity, M extends EntityModel<T>> boolean onRenderLivingPre(LivingEntity entity, LivingEntityRenderer<T,M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
    • onRenderLivingPost

      public static <T extends LivingEntity, M extends EntityModel<T>> boolean onRenderLivingPost(LivingEntity entity, LivingEntityRenderer<T,M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
    • onRenderPlayerPre

      public static boolean onRenderPlayerPre(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
    • onRenderPlayerPost

      public static boolean onRenderPlayerPost(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
    • onRenderArm

      public static boolean onRenderArm(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, AbstractClientPlayer player, HumanoidArm arm)
    • onRenderItemInFrame

      public static boolean onRenderItemInFrame(ItemFrame itemFrame, ItemFrameRenderer<?> renderItemFrame, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
    • fireRenderNameTagEvent

      public static RenderNameTagEvent fireRenderNameTagEvent(Entity entity, Component content, EntityRenderer<?> entityRenderer, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick)
    • onRenderScreenBackground

      public static void onRenderScreenBackground(Screen screen, GuiGraphics guiGraphics)