Package net.minecraft.client.renderer
Class GameRenderer
java.lang.Object
net.minecraft.client.renderer.GameRenderer
- All Implemented Interfaces:
AutoCloseable
,IFutureReloadListener
,IResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private float
static final int
private boolean
private int
private static final ResourceLocation[]
private float
private ItemStack
private float
private float
private int
final FirstPersonRenderer
private long
private long
private final LightTexture
private static final org.apache.logging.log4j.Logger
private final ActiveRenderInfo
private final MapItemRenderer
private final Minecraft
private static final ResourceLocation
private float
private final OverlayTexture
private boolean
private ShaderGroup
private final Random
private boolean
private final RenderTypeBuffers
private float
private boolean
private final IResourceManager
private int
private float
private float
private float
-
Constructor Summary
ConstructorDescriptionGameRenderer
(Minecraft p_i225966_1_, IResourceManager p_i225966_2_, RenderTypeBuffers p_i225966_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
bobHurt
(MatrixStack p_228380_1_, float p_228380_2_) private void
bobView
(MatrixStack p_228383_1_, float p_228383_2_) void
checkEntityPostEffect
(Entity p_175066_1_) void
close()
void
displayItemActivation
(ItemStack p_190565_1_) float
getDarkenWorldAmount
(float p_205002_1_) private double
getFov
(ActiveRenderInfo p_215311_1_, float p_215311_2_, boolean p_215311_3_) static float
getNightVisionScale
(LivingEntity p_180438_0_, float p_180438_1_) getProjectionMatrix
(ActiveRenderInfo p_228382_1_, float p_228382_2_, boolean p_228382_3_) float
void
loadEffect
(ResourceLocation p_175069_1_) void
onResourceManagerReload
(IResourceManager p_195410_1_) void
pick
(float p_78473_1_) void
render
(float p_195458_1_, long p_195458_2_, boolean p_195458_4_) private void
renderConfusionOverlay
(float p_243497_1_) private void
renderItemActivationAnimation
(int p_190563_1_, int p_190563_2_, float p_190563_3_) private void
renderItemInHand
(MatrixStack p_228381_1_, ActiveRenderInfo p_228381_2_, float p_228381_3_) void
renderLevel
(float p_228378_1_, long p_228378_2_, MatrixStack p_228378_4_) void
void
resetProjectionMatrix
(Matrix4f p_228379_1_) void
resize
(int p_147704_1_, int p_147704_2_) private boolean
void
private void
void
tick()
private void
tickFov()
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.resources.IFutureReloadListener
getName
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
Field Details
-
NAUSEA_LOCATION
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
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 -
lastActiveTime
private long lastActiveTime -
lightTexture
-
overlayTexture
-
panoramicMode
private boolean panoramicMode -
zoom
private float zoom -
zoomX
private float zoomX -
zoomY
private float zoomY -
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
-
-
Constructor Details
-
GameRenderer
public GameRenderer(Minecraft p_i225966_1_, IResourceManager p_i225966_2_, RenderTypeBuffers p_i225966_3_)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
shutdownEffect
public void shutdownEffect() -
togglePostEffect
public void togglePostEffect() -
checkEntityPostEffect
-
loadEffect
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
tick
public void tick() -
currentEffect
-
resize
public void resize(int p_147704_1_, int p_147704_2_) -
pick
public void pick(float p_78473_1_) -
tickFov
private void tickFov() -
getFov
-
bobHurt
-
bobView
-
renderItemInHand
private void renderItemInHand(MatrixStack p_228381_1_, ActiveRenderInfo p_228381_2_, float p_228381_3_) -
resetProjectionMatrix
-
getProjectionMatrix
public Matrix4f getProjectionMatrix(ActiveRenderInfo p_228382_1_, float p_228382_2_, boolean p_228382_3_) -
getNightVisionScale
-
render
public void render(float p_195458_1_, long p_195458_2_, boolean p_195458_4_) -
takeAutoScreenshot
private void takeAutoScreenshot() -
shouldRenderBlockOutline
private boolean shouldRenderBlockOutline() -
renderLevel
-
resetData
public void resetData() -
getMapRenderer
-
displayItemActivation
-
renderItemActivationAnimation
private void renderItemActivationAnimation(int p_190563_1_, int p_190563_2_, float p_190563_3_) -
renderConfusionOverlay
private void renderConfusionOverlay(float p_243497_1_) -
getDarkenWorldAmount
public float getDarkenWorldAmount(float p_205002_1_) -
getRenderDistance
public float getRenderDistance() -
getMainCamera
-
lightTexture
-
overlayTexture
-
getResourceType
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-