Package net.minecraft.client.renderer
Class GameRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.GameRenderer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IFutureReloadListener
,IResourceManagerReloadListener
public class GameRenderer extends java.lang.Object implements IResourceManagerReloadListener, java.lang.AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GameRenderer(Minecraft p_i225966_1_, IResourceManager p_i225966_2_, RenderTypeBuffers p_i225966_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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()
ShaderGroup
currentEffect()
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_)
ActiveRenderInfo
getMainCamera()
MapItemRenderer
getMapRenderer()
static float
getNightVisionScale(LivingEntity p_180438_0_, float p_180438_1_)
Matrix4f
getProjectionMatrix(ActiveRenderInfo p_228382_1_, float p_228382_2_, boolean p_228382_3_)
float
getRenderDistance()
IResourceType
getResourceType()
LightTexture
lightTexture()
void
loadEffect(ResourceLocation p_175069_1_)
void
onResourceManagerReload(IResourceManager p_195410_1_)
OverlayTexture
overlayTexture()
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
resetData()
void
resetProjectionMatrix(Matrix4f p_228379_1_)
void
resize(int p_147704_1_, int p_147704_2_)
private boolean
shouldRenderBlockOutline()
void
shutdownEffect()
private void
takeAutoScreenshot()
void
tick()
private void
tickFov()
void
togglePostEffect()
-
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 Detail
-
NAUSEA_LOCATION
private static final ResourceLocation NAUSEA_LOCATION
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
minecraft
private final Minecraft minecraft
-
resourceManager
private final IResourceManager resourceManager
-
random
private final java.util.Random random
-
renderDistance
private float renderDistance
-
itemInHandRenderer
public final FirstPersonRenderer itemInHandRenderer
-
mapRenderer
private final MapItemRenderer mapRenderer
-
renderBuffers
private final RenderTypeBuffers 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
private final LightTexture lightTexture
-
overlayTexture
private final OverlayTexture overlayTexture
-
panoramicMode
private boolean panoramicMode
-
zoom
private float zoom
-
zoomX
private float zoomX
-
zoomY
private float zoomY
-
itemActivationItem
@Nullable private ItemStack itemActivationItem
-
itemActivationTicks
private int itemActivationTicks
-
itemActivationOffX
private float itemActivationOffX
-
itemActivationOffY
private float itemActivationOffY
-
postEffect
@Nullable private ShaderGroup postEffect
-
EFFECTS
private static final ResourceLocation[] EFFECTS
-
EFFECT_NONE
public static final int EFFECT_NONE
-
effectIndex
private int effectIndex
-
effectActive
private boolean effectActive
-
mainCamera
private final ActiveRenderInfo mainCamera
-
-
Constructor Detail
-
GameRenderer
public GameRenderer(Minecraft p_i225966_1_, IResourceManager p_i225966_2_, RenderTypeBuffers p_i225966_3_)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
shutdownEffect
public void shutdownEffect()
-
togglePostEffect
public void togglePostEffect()
-
checkEntityPostEffect
public void checkEntityPostEffect(@Nullable Entity p_175066_1_)
-
loadEffect
public void loadEffect(ResourceLocation p_175069_1_)
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
tick
public void tick()
-
currentEffect
@Nullable public ShaderGroup 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
private double getFov(ActiveRenderInfo p_215311_1_, float p_215311_2_, boolean p_215311_3_)
-
bobHurt
private void bobHurt(MatrixStack p_228380_1_, float p_228380_2_)
-
bobView
private void bobView(MatrixStack p_228383_1_, float p_228383_2_)
-
renderItemInHand
private void renderItemInHand(MatrixStack p_228381_1_, ActiveRenderInfo p_228381_2_, float p_228381_3_)
-
resetProjectionMatrix
public void resetProjectionMatrix(Matrix4f p_228379_1_)
-
getProjectionMatrix
public Matrix4f getProjectionMatrix(ActiveRenderInfo p_228382_1_, float p_228382_2_, boolean p_228382_3_)
-
getNightVisionScale
public static float getNightVisionScale(LivingEntity p_180438_0_, float p_180438_1_)
-
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
public void renderLevel(float p_228378_1_, long p_228378_2_, MatrixStack p_228378_4_)
-
resetData
public void resetData()
-
getMapRenderer
public MapItemRenderer getMapRenderer()
-
displayItemActivation
public void displayItemActivation(ItemStack p_190565_1_)
-
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
public ActiveRenderInfo getMainCamera()
-
lightTexture
public LightTexture lightTexture()
-
overlayTexture
public OverlayTexture overlayTexture()
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
-