Package net.minecraft.client.render
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GameRenderer(MinecraftClient client, ResourceManager resourceManager, BufferBuilderStorage bufferBuilderStorage)
-
Method Summary
Modifier and Type Method Description void
apply(ResourceManager manager)
private void
bobView(MatrixStack matrixStack, float float2)
private void
bobViewWhenHurt(MatrixStack matrixStack, float float2)
void
close()
void
disableShader()
Matrix4f
getBasicProjectionMatrix(Camera camera, float float2, boolean bool)
Camera
getCamera()
private double
getFov(Camera camera, float tickDelta, boolean changingFov)
LightmapTextureManager
getLightmapTextureManager()
MapRenderer
getMapRenderer()
static float
getNightVisionStrength(LivingEntity livingEntity, float float2)
OverlayTexture
getOverlayTexture()
ShaderEffect
getShader()
float
getSkyDarkness(float tickDelta)
float
getViewDistance()
void
loadProjectionMatrix(Matrix4f matrix4f)
private void
loadShader(Identifier identifier)
private void
method_31136(float float2)
void
onCameraEntitySet(Entity entity)
void
onResized(int int2, int int3)
void
render(float tickDelta, long startTime, boolean tick)
private void
renderFloatingItem(int scaledWidth, int scaledHeight, float tickDelta)
private void
renderHand(MatrixStack matrices, Camera camera, float tickDelta)
void
renderWorld(float tickDelta, long limitTime, MatrixStack matrix)
void
reset()
private boolean
shouldRenderBlockOutline()
void
showFloatingItem(ItemStack floatingItem)
void
tick()
void
toggleShadersEnabled()
private void
updateMovementFovMultiplier()
void
updateTargetedEntity(float tickDelta)
private void
updateWorldIcon()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
Methods inherited from interface net.minecraft.resource.SynchronousResourceReloadListener
reload
-
Field Details
-
field_26730
-
LOGGER
-
SHADERS_LOCATIONS
-
SHADER_COUNT
public static final int SHADER_COUNT -
client
-
resourceContainer
-
random
-
viewDistance
private float viewDistance -
firstPersonRenderer
-
mapRenderer
-
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
-
overlayTexture
-
renderingPanorama
private boolean renderingPanorama -
zoom
private float zoom -
zoomX
private float zoomX -
zoomY
private float zoomY -
floatingItem
-
floatingItemTimeLeft
private int floatingItemTimeLeft -
floatingItemWidth
private float floatingItemWidth -
floatingItemHeight
private float floatingItemHeight -
shader
-
forcedShaderIndex
private int forcedShaderIndex -
shadersEnabled
private boolean shadersEnabled -
camera
-
-
Constructor Details
-
GameRenderer
public GameRenderer(MinecraftClient client, ResourceManager resourceManager, BufferBuilderStorage bufferBuilderStorage)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
disableShader
public void disableShader() -
toggleShadersEnabled
public void toggleShadersEnabled() -
onCameraEntitySet
-
loadShader
-
apply
- Specified by:
apply
in interfaceSynchronousResourceReloadListener
-
tick
public void tick() -
getShader
-
onResized
public void onResized(int int2, int int3) -
updateTargetedEntity
public void updateTargetedEntity(float tickDelta) -
updateMovementFovMultiplier
private void updateMovementFovMultiplier() -
getFov
-
bobViewWhenHurt
-
bobView
-
renderHand
-
loadProjectionMatrix
-
getBasicProjectionMatrix
-
getNightVisionStrength
-
render
public void render(float tickDelta, long startTime, boolean tick) -
updateWorldIcon
private void updateWorldIcon() -
shouldRenderBlockOutline
private boolean shouldRenderBlockOutline() -
renderWorld
-
reset
public void reset() -
getMapRenderer
-
showFloatingItem
-
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
-
getLightmapTextureManager
-
getOverlayTexture
-