public class GameRenderer extends java.lang.Object implements IResourceManagerReloadListener, java.lang.AutoCloseable
IFutureReloadListener.IStage
Constructor and Description |
---|
GameRenderer(Minecraft p_i225966_1_,
IResourceManager p_i225966_2_,
RenderTypeBuffers p_i225966_3_) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
getName
private static final ResourceLocation NAUSEA_LOCATION
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft minecraft
private final IResourceManager resourceManager
private final java.util.Random random
private float renderDistance
public final FirstPersonRenderer itemInHandRenderer
private final MapItemRenderer mapRenderer
private final RenderTypeBuffers renderBuffers
private int tick
private float fov
private float oldFov
private float darkenWorldAmount
private float darkenWorldAmountO
private boolean renderHand
private boolean renderBlockOutline
private long lastScreenshotAttempt
private long lastActiveTime
private final LightTexture lightTexture
private final OverlayTexture overlayTexture
private boolean panoramicMode
private float zoom
private float zoomX
private float zoomY
@Nullable private ItemStack itemActivationItem
private int itemActivationTicks
private float itemActivationOffX
private float itemActivationOffY
@Nullable private ShaderGroup postEffect
private static final ResourceLocation[] EFFECTS
public static final int EFFECT_NONE
private int effectIndex
private boolean effectActive
private final ActiveRenderInfo mainCamera
public GameRenderer(Minecraft p_i225966_1_, IResourceManager p_i225966_2_, RenderTypeBuffers p_i225966_3_)
public void close()
close
in interface java.lang.AutoCloseable
public void shutdownEffect()
public void togglePostEffect()
public void checkEntityPostEffect(@Nullable Entity p_175066_1_)
public void loadEffect(ResourceLocation p_175069_1_)
public void onResourceManagerReload(IResourceManager p_195410_1_)
onResourceManagerReload
in interface IResourceManagerReloadListener
public void tick()
@Nullable public ShaderGroup currentEffect()
public void resize(int p_147704_1_, int p_147704_2_)
public void pick(float p_78473_1_)
private void tickFov()
private double getFov(ActiveRenderInfo p_215311_1_, float p_215311_2_, boolean p_215311_3_)
private void bobHurt(MatrixStack p_228380_1_, float p_228380_2_)
private void bobView(MatrixStack p_228383_1_, float p_228383_2_)
private void renderItemInHand(MatrixStack p_228381_1_, ActiveRenderInfo p_228381_2_, float p_228381_3_)
public void resetProjectionMatrix(Matrix4f p_228379_1_)
public Matrix4f getProjectionMatrix(ActiveRenderInfo p_228382_1_, float p_228382_2_, boolean p_228382_3_)
public static float getNightVisionScale(LivingEntity p_180438_0_, float p_180438_1_)
public void render(float p_195458_1_, long p_195458_2_, boolean p_195458_4_)
private void takeAutoScreenshot()
private boolean shouldRenderBlockOutline()
public void renderLevel(float p_228378_1_, long p_228378_2_, MatrixStack p_228378_4_)
public void resetData()
public MapItemRenderer getMapRenderer()
public void displayItemActivation(ItemStack p_190565_1_)
private void renderItemActivationAnimation(int p_190563_1_, int p_190563_2_, float p_190563_3_)
private void renderConfusionOverlay(float p_243497_1_)
public float getDarkenWorldAmount(float p_205002_1_)
public float getRenderDistance()
public ActiveRenderInfo getMainCamera()
public LightTexture lightTexture()
public OverlayTexture overlayTexture()
public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener