Class GameRenderer

java.lang.Object
net.minecraft.client.render.GameRenderer
All Implemented Interfaces:
AutoCloseable, ResourceReloadListener, SynchronousResourceReloadListener

@Environment(CLIENT)
public class GameRenderer
extends Object
implements SynchronousResourceReloadListener, AutoCloseable
  • Field Details

    • field_26730

      private static final Identifier field_26730
    • LOGGER

      private static final Logger LOGGER
    • SHADERS_LOCATIONS

      private static final Identifier[] SHADERS_LOCATIONS
    • SHADER_COUNT

      public static final int SHADER_COUNT
    • client

      private final MinecraftClient client
    • resourceContainer

      private final ResourceManager resourceContainer
    • random

      private final Random random
    • viewDistance

      private float viewDistance
    • firstPersonRenderer

      public final HeldItemRenderer firstPersonRenderer
    • mapRenderer

      private final MapRenderer mapRenderer
    • buffers

      private final BufferBuilderStorage buffers
    • ticks

      private int ticks
    • movementFovMultiplier

      private float movementFovMultiplier
    • lastMovementFovMultiplier

      private float lastMovementFovMultiplier
    • skyDarkness

      private float skyDarkness
    • lastSkyDarkness

      private float lastSkyDarkness
    • renderHand

      private boolean renderHand
    • blockOutlineEnabled

      private boolean blockOutlineEnabled
    • lastWorldIconUpdate

      private long lastWorldIconUpdate
    • lastWindowFocusedTime

      private long lastWindowFocusedTime
    • lightmapTextureManager

      private final LightmapTextureManager lightmapTextureManager
    • overlayTexture

      private final OverlayTexture overlayTexture
    • renderingPanorama

      private boolean renderingPanorama
    • zoom

      private float zoom
    • zoomX

      private float zoomX
    • zoomY

      private float zoomY
    • floatingItem

      @Nullable private ItemStack floatingItem
    • floatingItemTimeLeft

      private int floatingItemTimeLeft
    • floatingItemWidth

      private float floatingItemWidth
    • floatingItemHeight

      private float floatingItemHeight
    • shader

      @Nullable private ShaderEffect shader
    • forcedShaderIndex

      private int forcedShaderIndex
    • shadersEnabled

      private boolean shadersEnabled
    • camera

      private final Camera camera
  • Constructor Details

  • Method Details

    • close

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

      public void disableShader()
    • toggleShadersEnabled

      public void toggleShadersEnabled()
    • onCameraEntitySet

      public void onCameraEntitySet​(@Nullable Entity entity)
    • loadShader

      private void loadShader​(Identifier identifier)
    • apply

      public void apply​(ResourceManager manager)
      Specified by:
      apply in interface SynchronousResourceReloadListener
    • tick

      public void tick()
    • getShader

      @Nullable public ShaderEffect getShader()
    • onResized

      public void onResized​(int int2, int int3)
    • updateTargetedEntity

      public void updateTargetedEntity​(float tickDelta)
    • updateMovementFovMultiplier

      private void updateMovementFovMultiplier()
    • getFov

      private double getFov​(Camera camera, float tickDelta, boolean changingFov)
    • bobViewWhenHurt

      private void bobViewWhenHurt​(MatrixStack matrixStack, float float2)
    • bobView

      private void bobView​(MatrixStack matrixStack, float float2)
    • renderHand

      private void renderHand​(MatrixStack matrices, Camera camera, float tickDelta)
    • loadProjectionMatrix

      public void loadProjectionMatrix​(Matrix4f matrix4f)
    • getBasicProjectionMatrix

      public Matrix4f getBasicProjectionMatrix​(Camera camera, float float2, boolean bool)
    • getNightVisionStrength

      public static float getNightVisionStrength​(LivingEntity livingEntity, float float2)
    • render

      public void render​(float tickDelta, long startTime, boolean tick)
    • updateWorldIcon

      private void updateWorldIcon()
    • shouldRenderBlockOutline

      private boolean shouldRenderBlockOutline()
    • renderWorld

      public void renderWorld​(float tickDelta, long limitTime, MatrixStack matrix)
    • reset

      public void reset()
    • getMapRenderer

      public MapRenderer getMapRenderer()
    • showFloatingItem

      public void showFloatingItem​(ItemStack floatingItem)
    • renderFloatingItem

      private void renderFloatingItem​(int scaledWidth, int scaledHeight, float tickDelta)
    • method_31136

      private void method_31136​(float float2)
    • getSkyDarkness

      public float getSkyDarkness​(float tickDelta)
    • getViewDistance

      public float getViewDistance()
    • getCamera

      public Camera getCamera()
    • getLightmapTextureManager

      public LightmapTextureManager getLightmapTextureManager()
    • getOverlayTexture

      public OverlayTexture getOverlayTexture()