Package net.minecraft.client.renderer
Class GameRenderer
java.lang.Object
net.minecraft.client.renderer.GameRenderer
- All Implemented Interfaces:
AutoCloseable
,PreparableReloadListener
,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate static ShaderInstance
private float
private float
private static final boolean
static final int
private boolean
private int
private static final ResourceLocation[]
private float
private boolean
static final int
private ItemStack
private float
private float
private int
final ItemInHandRenderer
private long
private long
private final LightTexture
private static final org.slf4j.Logger
private final Camera
private final MapRenderer
private final Minecraft
private static final ResourceLocation
private static ShaderInstance
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
private PostChain
static final float
private final Random
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 final ResourceManager
private final Map<String,
ShaderInstance> private int
private float
private float
private float
-
Constructor Summary
ConstructorDescriptionGameRenderer
(Minecraft p_109083_, ResourceManager p_109084_, RenderBuffers p_109085_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
void
checkEntityPostEffect
(Entity p_109107_) void
close()
void
void
displayItemActivation
(ItemStack p_109114_) static ShaderInstance
float
getDarkenWorldAmount
(float p_109132_) float
private double
static ShaderInstance
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
getProjectionMatrix
(double p_172717_) 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
boolean
void
loadEffect
(ResourceLocation p_109129_) void
onResourceManagerReload
(ResourceManager p_109105_) void
pick
(float p_109088_) private ShaderInstance
preloadShader
(ResourceProvider p_172725_, String p_172726_, VertexFormat p_172727_) void
preloadUiShader
(ResourceProvider p_172723_) void
reloadShaders
(ResourceManager p_172768_) void
render
(float p_109094_, long p_109095_, boolean p_109096_) private void
renderConfusionOverlay
(float p_109146_) 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
(Matrix4f p_109112_) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
NAUSEA_LOCATION
-
LOGGER
private 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:
-
minecraft
-
resourceManager
-
random
-
renderDistance
private float renderDistance -
itemInHandRenderer
-
mapRenderer
-
renderBuffers
-
tick
private int tick -
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
private int effectIndex -
effectActive
private boolean effectActive -
mainCamera
-
blitShader
-
shaders
-
positionShader
-
positionColorShader
-
positionColorTexShader
-
positionTexShader
-
positionTexColorShader
-
blockShader
-
newEntityShader
-
particleShader
-
positionColorLightmapShader
-
positionColorTexLightmapShader
-
positionTexColorNormalShader
-
positionTexLightmapColorShader
-
rendertypeSolidShader
-
rendertypeCutoutMippedShader
-
rendertypeCutoutShader
-
rendertypeTranslucentShader
-
rendertypeTranslucentMovingBlockShader
-
rendertypeTranslucentNoCrumblingShader
-
rendertypeArmorCutoutNoCullShader
-
rendertypeEntitySolidShader
-
rendertypeEntityCutoutShader
-
rendertypeEntityCutoutNoCullShader
-
rendertypeEntityCutoutNoCullZOffsetShader
-
rendertypeItemEntityTranslucentCullShader
-
rendertypeEntityTranslucentCullShader
-
rendertypeEntityTranslucentShader
-
rendertypeEntitySmoothCutoutShader
-
rendertypeBeaconBeamShader
-
rendertypeEntityDecalShader
-
rendertypeEntityNoOutlineShader
-
rendertypeEntityShadowShader
-
rendertypeEntityAlphaShader
-
rendertypeEyesShader
-
rendertypeEnergySwirlShader
-
rendertypeLeashShader
-
rendertypeWaterMaskShader
-
rendertypeOutlineShader
-
rendertypeArmorGlintShader
-
rendertypeArmorEntityGlintShader
-
rendertypeGlintTranslucentShader
-
rendertypeGlintShader
-
rendertypeGlintDirectShader
-
rendertypeEntityGlintShader
-
rendertypeEntityGlintDirectShader
-
rendertypeTextShader
-
rendertypeTextIntensityShader
-
rendertypeTextSeeThroughShader
-
rendertypeTextIntensitySeeThroughShader
-
rendertypeLightningShader
-
rendertypeTripwireShader
-
rendertypeEndPortalShader
-
rendertypeEndGatewayShader
-
rendertypeLinesShader
-
rendertypeCrumblingShader
-
-
Constructor Details
-
GameRenderer
-
-
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
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
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
-
getProjectionMatrix
-
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
private void renderConfusionOverlay(float p_109146_) -
getMinecraft
-
getDarkenWorldAmount
public float getDarkenWorldAmount(float p_109132_) -
getRenderDistance
public float getRenderDistance() -
getMainCamera
-
lightTexture
-
overlayTexture
-
getPositionShader
-
getPositionColorShader
-
getPositionColorTexShader
-
getPositionTexShader
-
getPositionTexColorShader
-
getBlockShader
-
getNewEntityShader
-
getParticleShader
-
getPositionColorLightmapShader
-
getPositionColorTexLightmapShader
-
getPositionTexColorNormalShader
-
getPositionTexLightmapColorShader
-
getRendertypeSolidShader
-
getRendertypeCutoutMippedShader
-
getRendertypeCutoutShader
-
getRendertypeTranslucentShader
-
getRendertypeTranslucentMovingBlockShader
-
getRendertypeTranslucentNoCrumblingShader
-
getRendertypeArmorCutoutNoCullShader
-
getRendertypeEntitySolidShader
-
getRendertypeEntityCutoutShader
-
getRendertypeEntityCutoutNoCullShader
-
getRendertypeEntityCutoutNoCullZOffsetShader
-
getRendertypeItemEntityTranslucentCullShader
-
getRendertypeEntityTranslucentCullShader
-
getRendertypeEntityTranslucentShader
-
getRendertypeEntitySmoothCutoutShader
-
getRendertypeBeaconBeamShader
-
getRendertypeEntityDecalShader
-
getRendertypeEntityNoOutlineShader
-
getRendertypeEntityShadowShader
-
getRendertypeEntityAlphaShader
-
getRendertypeEyesShader
-
getRendertypeEnergySwirlShader
-
getRendertypeLeashShader
-
getRendertypeWaterMaskShader
-
getRendertypeOutlineShader
-
getRendertypeArmorGlintShader
-
getRendertypeArmorEntityGlintShader
-
getRendertypeGlintTranslucentShader
-
getRendertypeGlintShader
-
getRendertypeGlintDirectShader
-
getRendertypeEntityGlintShader
-
getRendertypeEntityGlintDirectShader
-
getRendertypeTextShader
-
getRendertypeTextIntensityShader
-
getRendertypeTextSeeThroughShader
-
getRendertypeTextIntensitySeeThroughShader
-
getRendertypeLightningShader
-
getRendertypeTripwireShader
-
getRendertypeEndPortalShader
-
getRendertypeEndGatewayShader
-
getRendertypeLinesShader
-
getRendertypeCrumblingShader
-