Class GameRenderer

java.lang.Object
net.minecraft.client.renderer.GameRenderer
All Implemented Interfaces:
AutoCloseable, IFutureReloadListener, IResourceManagerReloadListener

public class GameRenderer extends Object implements IResourceManagerReloadListener, AutoCloseable
  • Field Details

    • NAUSEA_LOCATION

      private static final ResourceLocation NAUSEA_LOCATION
    • LOGGER

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

      private final Minecraft minecraft
    • resourceManager

      private final IResourceManager resourceManager
    • random

      private final Random random
    • renderDistance

      private float renderDistance
    • itemInHandRenderer

      public final FirstPersonRenderer itemInHandRenderer
    • mapRenderer

      private final MapItemRenderer mapRenderer
    • renderBuffers

      private final RenderTypeBuffers renderBuffers
    • 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
    • lightTexture

      private final LightTexture lightTexture
    • overlayTexture

      private final OverlayTexture overlayTexture
    • 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
    • postEffect

      @Nullable private ShaderGroup postEffect
    • EFFECTS

      private static final ResourceLocation[] EFFECTS
    • EFFECT_NONE

      public static final int EFFECT_NONE
    • effectIndex

      private int effectIndex
    • effectActive

      private boolean effectActive
    • mainCamera

      private final ActiveRenderInfo mainCamera
  • Constructor Details

  • Method Details

    • close

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

      public void shutdownEffect()
    • togglePostEffect

      public void togglePostEffect()
    • checkEntityPostEffect

      public void checkEntityPostEffect(@Nullable Entity p_175066_1_)
    • loadEffect

      public void loadEffect(ResourceLocation p_175069_1_)
    • onResourceManagerReload

      public void onResourceManagerReload(IResourceManager p_195410_1_)
      Specified by:
      onResourceManagerReload in interface IResourceManagerReloadListener
    • 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_)
    • renderItemInHand

      private void renderItemInHand(MatrixStack p_228381_1_, ActiveRenderInfo p_228381_2_, float p_228381_3_)
    • 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()
    • getMapRenderer

      public MapItemRenderer getMapRenderer()
    • 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()
    • getMainCamera

      public ActiveRenderInfo getMainCamera()
    • lightTexture

      public LightTexture lightTexture()
    • overlayTexture

      public OverlayTexture overlayTexture()
    • getResourceType

      public IResourceType getResourceType()
      Specified by:
      getResourceType in interface IResourceManagerReloadListener