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 int
private float
private float
private static final boolean
static final int
private boolean
(package private) int
(package private) static final ResourceLocation[]
private static final int
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
(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
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 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
void
displayItemActivation
(ItemStack p_109114_) 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
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
boolean
void
loadEffect
(ResourceLocation p_109129_) void
pick
(float p_109088_) private ShaderInstance
preloadShader
(ResourceProvider p_172725_, String p_172726_, VertexFormat p_172727_) void
preloadUiShader
(ResourceProvider p_172723_) (package private) void
reloadShaders
(ResourceProvider p_250719_) void
render
(float p_109094_, long p_109095_, boolean p_109096_) private void
renderConfusionOverlay
(GuiGraphics p_282460_, float p_282656_) private void
renderItemActivationAnimation
(int p_109101_, int p_109102_, float p_109103_) private void
renderItemInHand
(PoseStack p_109121_, Camera p_109122_, float p_109123_) void
renderLevel
(float p_109090_, long p_109091_, PoseStack p_109092_) 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
-
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:
-
ENTITY_INTERACTION_RANGE
private static final int ENTITY_INTERACTION_RANGE- 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
-
EFFECTS
-
EFFECT_NONE
public static final int EFFECT_NONE -
effectIndex
int effectIndex -
effectActive
private boolean effectActive -
mainCamera
-
blitShader
-
shaders
-
positionShader
-
positionColorShader
-
positionColorTexShader
-
positionTexShader
-
positionTexColorShader
-
particleShader
-
positionColorLightmapShader
-
positionColorTexLightmapShader
-
positionTexColorNormalShader
-
positionTexLightmapColorShader
-
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
-
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
-
cycleEffect
public void cycleEffect() -
loadEffect
-
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_) -
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
public void render(float p_109094_, long p_109095_, boolean p_109096_) -
tryTakeScreenshotIfNeeded
private void tryTakeScreenshotIfNeeded() -
takeAutoScreenshot
-
shouldRenderBlockOutline
private boolean shouldRenderBlockOutline() -
renderLevel
-
resetData
public void resetData() -
getMapRenderer
-
displayItemActivation
-
renderItemActivationAnimation
private void renderItemActivationAnimation(int p_109101_, int p_109102_, float p_109103_) -
renderConfusionOverlay
-
getMinecraft
-
getDarkenWorldAmount
public float getDarkenWorldAmount(float p_109132_) -
getRenderDistance
public float getRenderDistance() -
getMainCamera
-
lightTexture
-
overlayTexture
-
getPositionShader
-
getPositionColorShader
-
getPositionColorTexShader
-
getPositionTexShader
-
getPositionTexColorShader
-
getParticleShader
-
getPositionColorLightmapShader
-
getPositionColorTexLightmapShader
-
getPositionTexColorNormalShader
-
getPositionTexLightmapColorShader
-
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
-
getRendertypeLinesShader
-
getRendertypeCrumblingShader
-
getRendertypeGuiShader
-
getRendertypeGuiOverlayShader
-
getRendertypeGuiTextHighlightShader
-
getRendertypeGuiGhostRecipeOverlayShader
-