net.minecraft.client.render

public class GameRenderer

implements AutoCloseable, TrackedWaypoint$PitchProvider

net.minecraft.client.renderer.GameRenderer
net.minecraft.class_757
net.minecraft.client.render.GameRenderer

Field summary

Modifier and TypeField
private static final Identifier
BLUR_POST_CHAIN_ID
field_53899
BLUR_ID
public static final int
MAX_BLUR_RADIUS
field_49904
field_49904
private static final org.slf4j.Logger
LOGGER
field_3993
LOGGER
public static final float
PROJECTION_3D_HUD_Z_FAR
field_60107
PERSPECTIVE_FAR_DISTANCE
private static final float
PORTAL_SPINNING_SPEED
field_55869
field_55869
private static final float
NAUSEA_SPINNING_SPEED
field_55870
field_55870
private final MinecraftClient
minecraft
field_4015
client
private final GameRenderState
gameRenderState
field_1_2263
renderState
private final Random
random
field_3994
random
public final HeldItemRenderer
itemInHandRenderer
field_4012
firstPersonRenderer
private final InGameOverlayRenderer
screenEffectRenderer
field_59967
overlayRenderer
private final ThreeDimensionalCrosshair
debugCrosshairRenderer
field_1_3629
crosshair3d
private final BufferBuilderStorage
renderBuffers
field_20948
buffers
private final Framebuffer
mainRenderTarget
field_1_5610
framebuffer
private float
spinningEffectTime
field_55871
nauseaEffectTime
private float
spinningEffectSpeed
field_55872
nauseaEffectSpeed
private float
bossOverlayWorldDarkening
field_4002
skyDarkness
private float
bossOverlayWorldDarkeningO
field_3997
lastSkyDarkness
private boolean
renderBlockOutline
field_4009
blockOutlineEnabled
private long
lastScreenshotAttempt
field_4017
lastWorldIconUpdate
private boolean
hasWorldScreenshot
field_34055
hasWorldIcon
private final LightmapTexture
lightmap
field_1_117
lightmapTexture
private final LightmapTextureManager
lightmapRenderStateExtractor
field_4028
lightmapTextureManager
private final UiLightmapTexture
uiLightmap
field_1_119
uiLightmapTexture
private boolean
useUiLightmap
field_1_120
renderingUi
private final OverlayTexture
overlayTexture
field_20949
overlayTexture
protected final RotatingCubeMapRenderer
panorama
field_60580
rotatingPanoramaRenderer
private final ObjectPool
resourcePool
field_53066
pool
private final FogRenderer
fogRenderer
field_60793
fogRenderer
private final GuiRenderer
guiRenderer
field_59965
guiRenderer
private final RenderDispatcher
featureRenderDispatcher
field_61734
entityRenderDispatcher
private final OrderedRenderCommandQueueImpl
handAndScreenSubmitNodeStorage
field_61733
orderedRenderCommandQueue
private Identifier
postEffectId
field_53898
postProcessorId
private boolean
effectActive
field_4013
postProcessorEnabled
private final Camera
mainCamera
field_18765
camera
private final ProjectionMatrix3
hudProjection
field_1_1813
hudProjection
private final DiffuseLighting
lighting
field_60103
diffuseLighting
private final GlobalSettings
globalSettingsUniform
field_60104
globalSettings
private final ProjectionMatrixBuffer
levelProjectionMatrixBuffer
field_60105
worldProjectionMatrix
private final ProjectionMatrixBuffer
hud3dProjectionMatrixBuffer
field_60106
hudProjectionMatrix

Constructor summary

ModifierConstructor
public (MinecraftClient client, HeldItemRenderer firstPersonHeldItemRenderer, BakedModelManager bakedModelManager)

Method summary

Modifier and TypeMethod
public void
close()
public BufferBuilderStorage
renderBuffers()
method_1_4830()
getBuffers()
public RenderDispatcher
featureRenderDispatcher()
method_72911()
getEntityRenderDispatcher()
public GameRenderState
gameRenderState()
method_72912()
getRenderState()
public void
setRenderBlockOutline(boolean renderBlockOutline)
method_35769(boolean arg0)
setBlockOutlineEnabled(boolean blockOutlineEnabled)
public void
clearPostEffect()
method_62905()
clearPostProcessor()
public void
togglePostEffect()
method_3184()
togglePostProcessorEnabled()
public void
checkEntityPostEffect(Entity cameraEntity)
method_3167(class_1297 arg0)
onCameraEntitySet(Entity entity)
private void
setPostEffect(Identifier id)
method_62904(class_2960 arg0)
setPostProcessor(Identifier id)
public void
processBlurEffect()
method_57796()
renderBlur()
public void
preloadUiShader(ResourceProvider resourceProvider)
method_34521(class_5912 arg0)
preloadPrograms(ResourceFactory factory)
public void
tick()
method_3182()
tick()
public Identifier
currentPostEffect()
method_62906()
getPostProcessorId()
public void
resize(int width, int height)
method_3169(int arg0, int arg1)
onResized(int width, int height)
private void
bobHurt(CameraRenderState cameraState, PoseStack poseStack)
method_3198(class_12075 arg0, class_4587 arg1)
tiltViewWhenHurt(CameraRenderState cameraRenderState, MatrixStack matrices)
private void
bobView(CameraRenderState cameraState, PoseStack poseStack)
method_3186(class_12075 arg0, class_4587 arg1)
bobView(CameraRenderState cameraRenderState, MatrixStack matrices)
private void
renderItemInHand(CameraRenderState cameraState, float deltaPartialTick, org.joml.Matrix4fc modelViewMatrix)
method_3172(class_12075 arg0, float arg1, org.joml.Matrix4fc arg2)
renderHand(CameraRenderState cameraRenderState, float tickProgress, org.joml.Matrix4fc rotationMatrix)
public static float
nightVisionScale(LivingEntity camera, float a)
method_3174(class_1309 arg0, float arg1)
getNightVisionStrength(LivingEntity entity, float tickProgress)
public void
update(DeltaTracker deltaTracker)
method_1_2680(class_9779 arg0)
tickCamera(RenderTickCounter renderTickCounter)
public void
extract(DeltaTracker deltaTracker, boolean advanceGameTime)
method_1_2674(class_9779 arg0, boolean arg1)
extract(RenderTickCounter renderTickCounter, boolean tick)
public void
render(DeltaTracker deltaTracker, boolean advanceGameTime)
method_1_2679(class_9779 arg0, boolean arg1)
render(RenderTickCounter renderTickCounter, boolean tick)
private void
tryTakeScreenshotIfNeeded()
method_37473()
updateWorldIcon()
private void
takeAutoScreenshot(Path screenshotFile)
method_3176(Path arg0)
updateWorldIcon(Path path)
private boolean
shouldRenderBlockOutline()
method_3202()
shouldRenderBlockOutline()
public void
renderLevel(DeltaTracker deltaTracker)
method_3188(class_9779 arg0)
renderWorld(RenderTickCounter renderTickCounter)
private void
extractWindow()
method_1_2677()
updateWindowRenderState()
private void
extractOptions()
method_1_2676()
updateOptionsRenderState()
private void
extractCamera(DeltaTracker deltaTracker, float worldPartialTicks, float cameraEntityPartialTicks)
method_74920(class_9779 arg0, float arg1, float arg2)
updateCameraState(RenderTickCounter renderTickCounter, float skyTickProgress, float cameraTickProgress)
public void
resetData()
method_3203()
reset()
public void
displayItemActivation(ItemStack itemStack)
method_3189(class_1799 arg0)
showFloatingItem(ItemStack floatingItem)
public float
bossOverlayWorldDarkening(float a)
method_3195(float arg0)
getSkyDarkness(float tickProgress)
public Camera
mainCamera()
method_19418()
getCamera()
public GpuTextureView
lightmap()
method_1_431()
getLightmapTextureView()
public GpuTextureView
levelLightmap()
method_1_430()
getWorldLightmapTextureView()
public OverlayTexture
overlayTexture()
method_22975()
getOverlayTexture()
public Framebuffer
mainRenderTarget()
method_1_4829()
getFramebuffer()
public Vec3d
projectPointToScreen(Vec3 point)
method_70778(class_243 arg0)
project(Vec3d arg0)
public double
projectHorizonToScreen()
method_70777()
getPitch()
public DiffuseLighting
lighting()
method_71114()
getDiffuseLighting()
public void
setLevel(ClientLevel level)
method_71112(class_638 arg0)
setWorld(ClientWorld world)
public RotatingCubeMapRenderer
panorama()
method_71649()
getRotatingPanoramaRenderer()
public void
registerPanoramaTextures(TextureManager textureManager)
method_1_2678(class_1060 arg0)
registerPanoramaTextures(TextureManager textureManager)
public boolean
useImprovedTransparency()
method_1_7330()
usesImprovedTransparency()
private static String
lambda$renderLevel$0()
method_1_7329()
method_1_7329()
private static void
lambda$takeAutoScreenshot$0(Path arg0, NativeImage arg1)
method_68164(Path arg0, class_1011 arg1)
method_68164(Path arg0, NativeImage screenshot)
private static void
lambda$takeAutoScreenshot$1(NativeImage arg0, Path arg1)
method_3181(class_1011 arg0, Path arg1)
method_3181(NativeImage arg0, Path arg1)
private void
lambda$tryTakeScreenshotIfNeeded$0(Path arg0)
method_37474(Path arg0)
method_37474(Path path)
private static String
lambda$renderItemInHand$0()
method_1_7328()
method_1_7328()
private static String
lambda$preloadUiShader$0(ResourceProvider arg0, Identifier arg1, ShaderType arg2)
method_68479(class_5912 arg0, class_2960 arg1, ShaderType arg2)
method_68479(ResourceFactory arg0, Identifier id, ShaderType type)