Class GameRenderer

    • Field Detail

      • LOGGER

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

        private final Minecraft minecraft
      • random

        private final java.util.Random random
      • renderDistance

        private float renderDistance
      • tick

        private int tick
      • fov

        private float fov
      • oldFov

        private float oldFov
      • darkenWorldAmount

        private float darkenWorldAmount
      • darkenWorldAmountO

        private float darkenWorldAmountO
      • renderHand

        private boolean renderHand
      • renderBlockOutline

        private boolean renderBlockOutline
      • lastScreenshotAttempt

        private long lastScreenshotAttempt
      • lastActiveTime

        private long lastActiveTime
      • panoramicMode

        private boolean panoramicMode
      • zoom

        private float zoom
      • zoomX

        private float zoomX
      • zoomY

        private float zoomY
      • itemActivationItem

        @Nullable
        private ItemStack itemActivationItem
      • itemActivationTicks

        private int itemActivationTicks
      • itemActivationOffX

        private float itemActivationOffX
      • itemActivationOffY

        private float itemActivationOffY
      • EFFECT_NONE

        public static final int EFFECT_NONE
      • effectIndex

        private int effectIndex
      • effectActive

        private boolean effectActive
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • shutdownEffect

        public void shutdownEffect()
      • togglePostEffect

        public void togglePostEffect()
      • checkEntityPostEffect

        public void checkEntityPostEffect​(@Nullable
                                          Entity p_175066_1_)
      • tick

        public void tick()
      • currentEffect

        @Nullable
        public ShaderGroup currentEffect()
      • resize

        public void resize​(int p_147704_1_,
                           int p_147704_2_)
      • pick

        public void pick​(float p_78473_1_)
      • tickFov

        private void tickFov()
      • getFov

        private double getFov​(ActiveRenderInfo p_215311_1_,
                              float p_215311_2_,
                              boolean p_215311_3_)
      • bobHurt

        private void bobHurt​(MatrixStack p_228380_1_,
                             float p_228380_2_)
      • bobView

        private void bobView​(MatrixStack p_228383_1_,
                             float p_228383_2_)
      • resetProjectionMatrix

        public void resetProjectionMatrix​(Matrix4f p_228379_1_)
      • getProjectionMatrix

        public Matrix4f getProjectionMatrix​(ActiveRenderInfo p_228382_1_,
                                            float p_228382_2_,
                                            boolean p_228382_3_)
      • getNightVisionScale

        public static float getNightVisionScale​(LivingEntity p_180438_0_,
                                                float p_180438_1_)
      • render

        public void render​(float p_195458_1_,
                           long p_195458_2_,
                           boolean p_195458_4_)
      • takeAutoScreenshot

        private void takeAutoScreenshot()
      • shouldRenderBlockOutline

        private boolean shouldRenderBlockOutline()
      • renderLevel

        public void renderLevel​(float p_228378_1_,
                                long p_228378_2_,
                                MatrixStack p_228378_4_)
      • resetData

        public void resetData()
      • displayItemActivation

        public void displayItemActivation​(ItemStack p_190565_1_)
      • renderItemActivationAnimation

        private void renderItemActivationAnimation​(int p_190563_1_,
                                                   int p_190563_2_,
                                                   float p_190563_3_)
      • renderConfusionOverlay

        private void renderConfusionOverlay​(float p_243497_1_)
      • getDarkenWorldAmount

        public float getDarkenWorldAmount​(float p_205002_1_)
      • getRenderDistance

        public float getRenderDistance()