Class ForgeHooksClient


  • public class ForgeHooksClient
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • guiLayers

        private static final java.util.Stack<Screen> guiLayers
        Contains the *extra* GUI layers. The current top layer stays in Minecraft#currentScreen, and the rest serve as a background for it.
      • renderLayer

        static final java.lang.ThreadLocal<RenderType> renderLayer
      • forgeStatusLine

        public static java.lang.String forgeStatusLine
      • worldRenderPass

        static int worldRenderPass
      • flipX

        private static final Matrix4f flipX
      • flipXNormal

        private static final Matrix3f flipXNormal
      • slotMainHand

        private static int slotMainHand
    • Constructor Detail

      • ForgeHooksClient

        public ForgeHooksClient()
    • Method Detail

      • resizeGuiLayers

        public static void resizeGuiLayers​(Minecraft minecraft,
                                           int width,
                                           int height)
      • clearGuiLayers

        public static void clearGuiLayers​(Minecraft minecraft)
      • popGuiLayerInternal

        private static void popGuiLayerInternal​(Minecraft minecraft)
      • pushGuiLayer

        public static void pushGuiLayer​(Minecraft minecraft,
                                        Screen screen)
      • popGuiLayer

        public static void popGuiLayer​(Minecraft minecraft)
      • getGuiFarPlane

        public static float getGuiFarPlane()
      • getArmorTexture

        public static java.lang.String getArmorTexture​(Entity entity,
                                                       ItemStack armor,
                                                       java.lang.String _default,
                                                       EquipmentSlotType slot,
                                                       java.lang.String type)
      • dispatchRenderLast

        public static void dispatchRenderLast​(WorldRenderer context,
                                              MatrixStack mat,
                                              float partialTicks,
                                              Matrix4f projectionMatrix,
                                              long finishTimeNano)
      • renderSpecificFirstPersonHand

        public static boolean renderSpecificFirstPersonHand​(Hand hand,
                                                            MatrixStack mat,
                                                            IRenderTypeBuffer buffers,
                                                            int light,
                                                            float partialTicks,
                                                            float interpPitch,
                                                            float swingProgress,
                                                            float equipProgress,
                                                            ItemStack stack)
      • onTextureStitchedPost

        public static void onTextureStitchedPost​(AtlasTexture map)
      • onBlockColorsInit

        public static void onBlockColorsInit​(BlockColors blockColors)
      • onItemColorsInit

        public static void onItemColorsInit​(ItemColors itemColors,
                                            BlockColors blockColors)
      • setRenderLayer

        public static void setRenderLayer​(RenderType layer)
      • fixDomain

        public static java.lang.String fixDomain​(java.lang.String base,
                                                 java.lang.String complex)
      • getOffsetFOV

        public static float getOffsetFOV​(PlayerEntity entity,
                                         float fov)
      • getFOVModifier

        public static double getFOVModifier​(GameRenderer renderer,
                                            ActiveRenderInfo info,
                                            double renderPartialTicks,
                                            double fov)
      • getWorldRenderPass

        public static int getWorldRenderPass()
      • drawScreen

        public static void drawScreen​(Screen screen,
                                      MatrixStack mStack,
                                      int mouseX,
                                      int mouseY,
                                      float partialTicks)
      • drawScreenInternal

        private static void drawScreenInternal​(Screen screen,
                                               MatrixStack mStack,
                                               int mouseX,
                                               int mouseY,
                                               float partialTicks)
      • getColorIndex

        public static int getColorIndex​(VertexFormat fmt)
      • gatherFluidTextures

        public static void gatherFluidTextures​(java.util.Set<RenderMaterial> textures)
      • getFluidMaterials

        public static java.util.stream.Stream<RenderMaterial> getFluidMaterials​(Fluid fluid)
      • fillNormal

        public static void fillNormal​(int[] faceData,
                                      Direction facing)
        internal, relies on fixed format of FaceBakery
      • getVertexPos

        private static Vector3f getVertexPos​(int[] data,
                                             int vertex)
      • loadEntityShader

        public static void loadEntityShader​(Entity entity,
                                            GameRenderer entityRenderer)
      • shouldCauseReequipAnimation

        public static boolean shouldCauseReequipAnimation​(@Nonnull
                                                          ItemStack from,
                                                          @Nonnull
                                                          ItemStack to,
                                                          int slot)
      • onGuiMouseClickedPre

        public static boolean onGuiMouseClickedPre​(Screen guiScreen,
                                                   double mouseX,
                                                   double mouseY,
                                                   int button)
      • onGuiMouseClickedPost

        public static boolean onGuiMouseClickedPost​(Screen guiScreen,
                                                    double mouseX,
                                                    double mouseY,
                                                    int button)
      • onGuiMouseReleasedPre

        public static boolean onGuiMouseReleasedPre​(Screen guiScreen,
                                                    double mouseX,
                                                    double mouseY,
                                                    int button)
      • onGuiMouseReleasedPost

        public static boolean onGuiMouseReleasedPost​(Screen guiScreen,
                                                     double mouseX,
                                                     double mouseY,
                                                     int button)
      • onGuiMouseDragPre

        public static boolean onGuiMouseDragPre​(Screen guiScreen,
                                                double mouseX,
                                                double mouseY,
                                                int mouseButton,
                                                double dragX,
                                                double dragY)
      • onGuiMouseDragPost

        public static boolean onGuiMouseDragPost​(Screen guiScreen,
                                                 double mouseX,
                                                 double mouseY,
                                                 int mouseButton,
                                                 double dragX,
                                                 double dragY)
      • onGuiMouseScrollPre

        public static boolean onGuiMouseScrollPre​(MouseHelper mouseHelper,
                                                  Screen guiScreen,
                                                  double scrollDelta)
      • onGuiMouseScrollPost

        public static boolean onGuiMouseScrollPost​(MouseHelper mouseHelper,
                                                   Screen guiScreen,
                                                   double scrollDelta)
      • onGuiKeyPressedPre

        public static boolean onGuiKeyPressedPre​(Screen guiScreen,
                                                 int keyCode,
                                                 int scanCode,
                                                 int modifiers)
      • onGuiKeyPressedPost

        public static boolean onGuiKeyPressedPost​(Screen guiScreen,
                                                  int keyCode,
                                                  int scanCode,
                                                  int modifiers)
      • onGuiKeyReleasedPre

        public static boolean onGuiKeyReleasedPre​(Screen guiScreen,
                                                  int keyCode,
                                                  int scanCode,
                                                  int modifiers)
      • onGuiKeyReleasedPost

        public static boolean onGuiKeyReleasedPost​(Screen guiScreen,
                                                   int keyCode,
                                                   int scanCode,
                                                   int modifiers)
      • onGuiCharTypedPre

        public static boolean onGuiCharTypedPre​(Screen guiScreen,
                                                char codePoint,
                                                int modifiers)
      • onGuiCharTypedPost

        public static boolean onGuiCharTypedPost​(Screen guiScreen,
                                                 char codePoint,
                                                 int modifiers)
      • onRecipesUpdated

        public static void onRecipesUpdated​(RecipeManager mgr)
      • invalidateLog4jThreadCache

        public static void invalidateLog4jThreadCache()
      • fireMouseInput

        public static void fireMouseInput​(int button,
                                          int action,
                                          int mods)
      • fireKeyInput

        public static void fireKeyInput​(int key,
                                        int scanCode,
                                        int action,
                                        int modifiers)
      • onMouseScroll

        public static boolean onMouseScroll​(MouseHelper mouseHelper,
                                            double scrollDelta)
      • onRawMouseClicked

        public static boolean onRawMouseClicked​(int button,
                                                int action,
                                                int mods)
      • isNameplateInRenderDistance

        public static boolean isNameplateInRenderDistance​(Entity entity,
                                                          double squareDistance)
      • registerForgeWorldTypeScreens

        public static void registerForgeWorldTypeScreens()
      • hasBiomeGeneratorSettingsOptionsScreen

        public static boolean hasBiomeGeneratorSettingsOptionsScreen​(java.util.Optional<BiomeGeneratorTypeScreens> generator)