public class GameRenderer extends java.lang.Object implements java.lang.AutoCloseable, IResourceManagerReloadListener
IFutureReloadListener.IStage
Constructor and Description |
---|
GameRenderer(Minecraft mcIn,
IResourceManager resourceManagerIn,
RenderTypeBuffers renderTypeBuffersIn) |
Modifier and Type | Method and Description |
---|---|
private void |
applyBobbing(MatrixStack matrixStackIn,
float partialTicks) |
void |
close() |
private void |
createWorldIcon() |
void |
displayItemActivation(ItemStack stack) |
ActiveRenderInfo |
getActiveRenderInfo() |
float |
getBossColorModifier(float partialTicks) |
float |
getFarPlaneDistance() |
private double |
getFOVModifier(ActiveRenderInfo activeRenderInfoIn,
float partialTicks,
boolean useFOVSetting) |
LightTexture |
getLightTexture() |
MapItemRenderer |
getMapItemRenderer() |
void |
getMouseOver(float partialTicks) |
static float |
getNightVisionBrightness(LivingEntity livingEntityIn,
float entitylivingbaseIn) |
OverlayTexture |
getOverlayTexture() |
Matrix4f |
getProjectionMatrix(ActiveRenderInfo activeRenderInfoIn,
float partialTicks,
boolean useFovSetting) |
IResourceType |
getResourceType() |
ShaderGroup |
getShaderGroup() |
private void |
hurtCameraEffect(MatrixStack matrixStackIn,
float partialTicks) |
private boolean |
isDrawBlockOutline() |
void |
loadEntityShader(Entity entityIn) |
void |
loadShader(ResourceLocation resourceLocationIn) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
private void |
renderHand(MatrixStack matrixStackIn,
ActiveRenderInfo activeRenderInfoIn,
float partialTicks) |
private void |
renderItemActivation(int widthsp,
int heightScaled,
float partialTicks) |
void |
renderWorld(float partialTicks,
long finishTimeNano,
MatrixStack matrixStackIn) |
void |
resetData() |
void |
resetProjectionMatrix(Matrix4f matrixIn) |
void |
stopUseShader() |
void |
switchUseShader() |
void |
tick() |
void |
updateCameraAndRender(float partialTicks,
long nanoTime,
boolean renderWorldIn) |
private void |
updateFovModifierHand() |
void |
updateShaderGroupSize(int width,
int height) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
func_225594_i_
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
private final IResourceManager resourceManager
private final java.util.Random random
private float farPlaneDistance
public final FirstPersonRenderer itemRenderer
private final MapItemRenderer mapItemRenderer
private final RenderTypeBuffers renderTypeBuffers
private int rendererUpdateCount
private float fovModifierHand
private float fovModifierHandPrev
private float bossColorModifier
private float bossColorModifierPrev
private boolean renderHand
private boolean drawBlockOutline
private long timeWorldIcon
private long prevFrameTime
private final LightTexture lightmapTexture
private final OverlayTexture overlayTexture
private boolean debugView
private float cameraZoom
private float cameraYaw
private float cameraPitch
@Nullable private ItemStack itemActivationItem
private int itemActivationTicks
private float itemActivationOffX
private float itemActivationOffY
@Nullable private ShaderGroup shaderGroup
private static final ResourceLocation[] SHADERS_TEXTURES
public static final int SHADER_COUNT
private int shaderIndex
private boolean useShader
private final ActiveRenderInfo activeRender
public GameRenderer(Minecraft mcIn, IResourceManager resourceManagerIn, RenderTypeBuffers renderTypeBuffersIn)
public void close()
close
in interface java.lang.AutoCloseable
public void stopUseShader()
public void switchUseShader()
public void loadEntityShader(@Nullable Entity entityIn)
public void loadShader(ResourceLocation resourceLocationIn)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public void tick()
@Nullable public ShaderGroup getShaderGroup()
public void updateShaderGroupSize(int width, int height)
public void getMouseOver(float partialTicks)
private void updateFovModifierHand()
private double getFOVModifier(ActiveRenderInfo activeRenderInfoIn, float partialTicks, boolean useFOVSetting)
private void hurtCameraEffect(MatrixStack matrixStackIn, float partialTicks)
private void applyBobbing(MatrixStack matrixStackIn, float partialTicks)
private void renderHand(MatrixStack matrixStackIn, ActiveRenderInfo activeRenderInfoIn, float partialTicks)
public void resetProjectionMatrix(Matrix4f matrixIn)
public Matrix4f getProjectionMatrix(ActiveRenderInfo activeRenderInfoIn, float partialTicks, boolean useFovSetting)
public static float getNightVisionBrightness(LivingEntity livingEntityIn, float entitylivingbaseIn)
public void updateCameraAndRender(float partialTicks, long nanoTime, boolean renderWorldIn)
private void createWorldIcon()
private boolean isDrawBlockOutline()
public void renderWorld(float partialTicks, long finishTimeNano, MatrixStack matrixStackIn)
public void resetData()
public MapItemRenderer getMapItemRenderer()
public void displayItemActivation(ItemStack stack)
private void renderItemActivation(int widthsp, int heightScaled, float partialTicks)
public float getBossColorModifier(float partialTicks)
public float getFarPlaneDistance()
public ActiveRenderInfo getActiveRenderInfo()
public LightTexture getLightTexture()
public OverlayTexture getOverlayTexture()
public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener