Package net.minecraft.client.renderer
Class GameRenderer
java.lang.Object
net.minecraft.client.renderer.GameRenderer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private PostChain
private int
private float
private float
private static final boolean
private boolean
private float
private static final float
private boolean
static final int
private ItemStack
private float
private float
private int
final ItemInHandRenderer
private long
private long
private final LightTexture
(package private) static final org.slf4j.Logger
private final Camera
private final MapRenderer
static final int
(package private) final Minecraft
private static final ResourceLocation
private float
private final OverlayTexture
private boolean
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
(package private) PostChain
static final float
private final RandomSource
private boolean
private final RenderBuffers
private float
private boolean
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private static ShaderInstance
private final ResourceManager
private final Map
<String, ShaderInstance> private float
private float
private float
-
Constructor Summary
ConstructorDescriptionGameRenderer
(Minecraft p_234219_, ItemInHandRenderer p_234220_, ResourceManager p_234221_, RenderBuffers p_234222_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
void
checkEntityPostEffect
(Entity p_109107_) void
close()
void
displayItemActivation
(ItemStack p_109114_) private static HitResult
filterHitResult
(HitResult p_319875_, Vec3 p_320631_, double p_319892_) float
getDarkenWorldAmount
(float p_109132_) float
private double
static float
getNightVisionScale
(LivingEntity p_109109_, float p_109110_) static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
org.joml.Matrix4f
getProjectionMatrix
(double p_254507_) float
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
static ShaderInstance
boolean
private void
loadBlurEffect
(ResourceProvider p_341650_) void
loadEffect
(ResourceLocation p_109129_) void
pick
(float p_109088_) private HitResult
private ShaderInstance
preloadShader
(ResourceProvider p_172725_, String p_172726_, VertexFormat p_172727_) void
preloadUiShader
(ResourceProvider p_172723_) void
processBlurEffect
(float p_331160_) (package private) void
reloadShaders
(ResourceProvider p_250719_) void
render
(DeltaTracker p_348648_, boolean p_109096_) private void
renderConfusionOverlay
(GuiGraphics p_282460_, float p_282656_) private void
renderItemActivationAnimation
(GuiGraphics p_350868_, float p_109103_) private void
renderItemInHand
(Camera p_109122_, float p_109123_, org.joml.Matrix4f p_333953_) void
renderLevel
(DeltaTracker p_348589_) void
renderZoomed
(float p_172719_, float p_172720_, float p_172721_) void
void
resetProjectionMatrix
(org.joml.Matrix4f p_253668_) void
resize
(int p_109098_, int p_109099_) void
setPanoramicMode
(boolean p_172780_) void
setRenderBlockOutline
(boolean p_172776_) void
setRenderHand
(boolean p_172737_) private boolean
void
private void
private void
takeAutoScreenshot
(Path p_182643_) void
tick()
private void
tickFov()
void
private void
-
Field Details
-
NAUSEA_LOCATION
-
BLUR_LOCATION
-
MAX_BLUR_RADIUS
public static final int MAX_BLUR_RADIUS- See Also:
-
LOGGER
static final org.slf4j.Logger LOGGER -
DEPTH_BUFFER_DEBUG
private static final boolean DEPTH_BUFFER_DEBUG- See Also:
-
PROJECTION_Z_NEAR
public static final float PROJECTION_Z_NEAR- See Also:
-
GUI_Z_NEAR
private static final float GUI_Z_NEAR- See Also:
-
minecraft
-
resourceManager
-
random
-
renderDistance
private float renderDistance -
itemInHandRenderer
-
mapRenderer
-
renderBuffers
-
confusionAnimationTick
private int confusionAnimationTick -
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 -
hasWorldScreenshot
private boolean hasWorldScreenshot -
lastActiveTime
private long lastActiveTime -
lightTexture
-
overlayTexture
-
panoramicMode
private boolean panoramicMode -
zoom
private float zoom -
zoomX
private float zoomX -
zoomY
private float zoomY -
ITEM_ACTIVATION_ANIMATION_LENGTH
public static final int ITEM_ACTIVATION_ANIMATION_LENGTH- See Also:
-
itemActivationItem
-
itemActivationTicks
private int itemActivationTicks -
itemActivationOffX
private float itemActivationOffX -
itemActivationOffY
private float itemActivationOffY -
postEffect
-
blurEffect
-
effectActive
private boolean effectActive -
mainCamera
-
blitShader
-
shaders
-
positionShader
-
positionColorShader
-
positionTexShader
-
positionTexColorShader
-
particleShader
-
positionColorLightmapShader
-
positionColorTexLightmapShader
-
rendertypeSolidShader
-
rendertypeCutoutMippedShader
-
rendertypeCutoutShader
-
rendertypeTranslucentShader
-
rendertypeTranslucentMovingBlockShader
-
rendertypeArmorCutoutNoCullShader
-
rendertypeEntitySolidShader
-
rendertypeEntityCutoutShader
-
rendertypeEntityCutoutNoCullShader
-
rendertypeEntityCutoutNoCullZOffsetShader
-
rendertypeItemEntityTranslucentCullShader
-
rendertypeEntityTranslucentCullShader
-
rendertypeEntityTranslucentShader
-
rendertypeEntityTranslucentEmissiveShader
-
rendertypeEntitySmoothCutoutShader
-
rendertypeBeaconBeamShader
-
rendertypeEntityDecalShader
-
rendertypeEntityNoOutlineShader
-
rendertypeEntityShadowShader
-
rendertypeEntityAlphaShader
-
rendertypeEyesShader
-
rendertypeEnergySwirlShader
-
rendertypeBreezeWindShader
-
rendertypeLeashShader
-
rendertypeWaterMaskShader
-
rendertypeOutlineShader
-
rendertypeArmorGlintShader
-
rendertypeArmorEntityGlintShader
-
rendertypeGlintTranslucentShader
-
rendertypeGlintShader
-
rendertypeGlintDirectShader
-
rendertypeEntityGlintShader
-
rendertypeEntityGlintDirectShader
-
rendertypeTextShader
-
rendertypeTextBackgroundShader
-
rendertypeTextIntensityShader
-
rendertypeTextSeeThroughShader
-
rendertypeTextBackgroundSeeThroughShader
-
rendertypeTextIntensitySeeThroughShader
-
rendertypeLightningShader
-
rendertypeTripwireShader
-
rendertypeEndPortalShader
-
rendertypeEndGatewayShader
-
rendertypeCloudsShader
-
rendertypeLinesShader
-
rendertypeCrumblingShader
-
rendertypeGuiShader
-
rendertypeGuiOverlayShader
-
rendertypeGuiTextHighlightShader
-
rendertypeGuiGhostRecipeOverlayShader
-
-
Constructor Details
-
GameRenderer
public GameRenderer(Minecraft p_234219_, ItemInHandRenderer p_234220_, ResourceManager p_234221_, RenderBuffers p_234222_)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setRenderHand
public void setRenderHand(boolean p_172737_) -
setRenderBlockOutline
public void setRenderBlockOutline(boolean p_172776_) -
setPanoramicMode
public void setPanoramicMode(boolean p_172780_) -
isPanoramicMode
public boolean isPanoramicMode() -
shutdownEffect
public void shutdownEffect() -
togglePostEffect
public void togglePostEffect() -
checkEntityPostEffect
-
loadEffect
-
loadBlurEffect
-
processBlurEffect
public void processBlurEffect(float p_331160_) -
createReloadListener
-
preloadUiShader
-
preloadShader
private ShaderInstance preloadShader(ResourceProvider p_172725_, String p_172726_, VertexFormat p_172727_) -
reloadShaders
-
shutdownShaders
private void shutdownShaders() -
getShader
-
tick
public void tick() -
currentEffect
-
resize
public void resize(int p_109098_, int p_109099_) -
pick
public void pick(float p_109088_) -
pick
-
filterHitResult
-
tickFov
private void tickFov() -
getFov
-
bobHurt
-
bobView
-
renderZoomed
public void renderZoomed(float p_172719_, float p_172720_, float p_172721_) -
renderItemInHand
-
resetProjectionMatrix
public void resetProjectionMatrix(org.joml.Matrix4f p_253668_) -
getProjectionMatrix
public org.joml.Matrix4f getProjectionMatrix(double p_254507_) -
getDepthFar
public float getDepthFar() -
getNightVisionScale
-
render
-
tryTakeScreenshotIfNeeded
private void tryTakeScreenshotIfNeeded() -
takeAutoScreenshot
-
shouldRenderBlockOutline
private boolean shouldRenderBlockOutline() -
renderLevel
-
resetData
public void resetData() -
getMapRenderer
-
displayItemActivation
-
renderItemActivationAnimation
-
renderConfusionOverlay
-
getMinecraft
-
getDarkenWorldAmount
public float getDarkenWorldAmount(float p_109132_) -
getRenderDistance
public float getRenderDistance() -
getMainCamera
-
lightTexture
-
overlayTexture
-
getPositionShader
-
getPositionColorShader
-
getPositionTexShader
-
getPositionTexColorShader
-
getParticleShader
-
getPositionColorLightmapShader
-
getPositionColorTexLightmapShader
-
getRendertypeSolidShader
-
getRendertypeCutoutMippedShader
-
getRendertypeCutoutShader
-
getRendertypeTranslucentShader
-
getRendertypeTranslucentMovingBlockShader
-
getRendertypeArmorCutoutNoCullShader
-
getRendertypeEntitySolidShader
-
getRendertypeEntityCutoutShader
-
getRendertypeEntityCutoutNoCullShader
-
getRendertypeEntityCutoutNoCullZOffsetShader
-
getRendertypeItemEntityTranslucentCullShader
-
getRendertypeEntityTranslucentCullShader
-
getRendertypeEntityTranslucentShader
-
getRendertypeEntityTranslucentEmissiveShader
-
getRendertypeEntitySmoothCutoutShader
-
getRendertypeBeaconBeamShader
-
getRendertypeEntityDecalShader
-
getRendertypeEntityNoOutlineShader
-
getRendertypeEntityShadowShader
-
getRendertypeEntityAlphaShader
-
getRendertypeEyesShader
-
getRendertypeEnergySwirlShader
-
getRendertypeBreezeWindShader
-
getRendertypeLeashShader
-
getRendertypeWaterMaskShader
-
getRendertypeOutlineShader
-
getRendertypeArmorGlintShader
-
getRendertypeArmorEntityGlintShader
-
getRendertypeGlintTranslucentShader
-
getRendertypeGlintShader
-
getRendertypeGlintDirectShader
-
getRendertypeEntityGlintShader
-
getRendertypeEntityGlintDirectShader
-
getRendertypeTextShader
-
getRendertypeTextBackgroundShader
-
getRendertypeTextIntensityShader
-
getRendertypeTextSeeThroughShader
-
getRendertypeTextBackgroundSeeThroughShader
-
getRendertypeTextIntensitySeeThroughShader
-
getRendertypeLightningShader
-
getRendertypeTripwireShader
-
getRendertypeEndPortalShader
-
getRendertypeEndGatewayShader
-
getRendertypeCloudsShader
-
getRendertypeLinesShader
-
getRendertypeCrumblingShader
-
getRendertypeGuiShader
-
getRendertypeGuiOverlayShader
-
getRendertypeGuiTextHighlightShader
-
getRendertypeGuiGhostRecipeOverlayShader
-