public class EntityRenderer extends java.lang.Object implements IResourceManagerReloadListener
Constructor and Description |
---|
EntityRenderer(Minecraft mcIn,
IResourceManager resourceManagerIn) |
Modifier and Type | Method and Description |
---|---|
private void |
addRainParticles() |
private void |
applyBobbing(float partialTicks) |
private void |
createWorldIcon() |
void |
disableLightmap() |
void |
displayItemActivation(ItemStack stack) |
static void |
drawNameplate(FontRenderer fontRendererIn,
java.lang.String str,
float x,
float y,
float z,
int verticalShift,
float viewerYaw,
float viewerPitch,
boolean isThirdPersonFrontal,
boolean isSneaking) |
void |
enableLightmap() |
private float |
getFOVModifier(float partialTicks,
boolean useFOVSetting) |
MapItemRenderer |
getMapItemRenderer() |
void |
getMouseOver(float partialTicks) |
private float |
getNightVisionBrightness(EntityLivingBase entitylivingbaseIn,
float partialTicks) |
ShaderGroup |
getShaderGroup() |
private void |
hurtCameraEffect(float partialTicks) |
private boolean |
isDrawBlockOutline() |
boolean |
isShaderActive() |
void |
loadEntityShader(Entity entityIn) |
void |
loadShader(ResourceLocation resourceLocationIn) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
private void |
orientCamera(float partialTicks) |
private void |
renderCloudsCheck(RenderGlobal renderGlobalIn,
float partialTicks,
int pass,
double x,
double y,
double z) |
private void |
renderHand(float partialTicks,
int pass) |
private void |
renderItemActivation(int p_190563_1_,
int p_190563_2_,
float p_190563_3_) |
protected void |
renderRainSnow(float partialTicks) |
void |
renderStreamIndicator(float partialTicks) |
void |
renderWorld(float partialTicks,
long finishTimeNano) |
private void |
renderWorldPass(int pass,
float partialTicks,
long finishTimeNano) |
void |
resetData() |
private java.nio.FloatBuffer |
setFogColorBuffer(float red,
float green,
float blue,
float alpha) |
private void |
setupCameraTransform(float partialTicks,
int pass) |
private void |
setupFog(int startCoords,
float partialTicks) |
void |
setupFogColor(boolean black) |
void |
setupOverlayRendering() |
void |
stopUseShader() |
void |
switchUseShader() |
void |
updateCameraAndRender(float partialTicks,
long nanoTime) |
private void |
updateFogColor(float partialTicks) |
private void |
updateFovModifierHand() |
private void |
updateLightmap(float partialTicks) |
void |
updateRenderer() |
void |
updateShaderGroupSize(int width,
int height) |
private void |
updateTorchFlicker() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final ResourceLocation RAIN_TEXTURES
private static final ResourceLocation SNOW_TEXTURES
public static boolean anaglyphEnable
public static int anaglyphField
private final Minecraft mc
private final IResourceManager resourceManager
private final java.util.Random random
private float farPlaneDistance
public final ItemRenderer itemRenderer
private final MapItemRenderer mapItemRenderer
private int rendererUpdateCount
private Entity pointedEntity
private final MouseFilter mouseFilterXAxis
private final MouseFilter mouseFilterYAxis
private final float thirdPersonDistance
private float thirdPersonDistancePrev
private float smoothCamYaw
private float smoothCamPitch
private float smoothCamFilterX
private float smoothCamFilterY
private float smoothCamPartialTicks
private float fovModifierHand
private float fovModifierHandPrev
private float bossColorModifier
private float bossColorModifierPrev
private boolean cloudFog
private boolean renderHand
private boolean drawBlockOutline
private long timeWorldIcon
private long prevFrameTime
private long renderEndNanoTime
private final DynamicTexture lightmapTexture
private final int[] lightmapColors
private final ResourceLocation locationLightMap
private boolean lightmapUpdateNeeded
private float torchFlickerX
private float torchFlickerDX
private int rainSoundCounter
private final float[] rainXCoords
private final float[] rainYCoords
private final java.nio.FloatBuffer fogColorBuffer
private float fogColorRed
private float fogColorGreen
private float fogColorBlue
private float fogColor2
private float fogColor1
private int debugViewDirection
private boolean debugView
private double cameraZoom
private double cameraYaw
private double cameraPitch
private ItemStack itemActivationItem
private int itemActivationTicks
private float itemActivationOffX
private float itemActivationOffY
private ShaderGroup shaderGroup
private static final ResourceLocation[] SHADERS_TEXTURES
public static final int SHADER_COUNT
private int shaderIndex
private boolean useShader
private int frameCount
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
public boolean isShaderActive()
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 updateRenderer()
public ShaderGroup getShaderGroup()
public void updateShaderGroupSize(int width, int height)
public void getMouseOver(float partialTicks)
private void updateFovModifierHand()
private float getFOVModifier(float partialTicks, boolean useFOVSetting)
private void hurtCameraEffect(float partialTicks)
private void applyBobbing(float partialTicks)
private void orientCamera(float partialTicks)
private void setupCameraTransform(float partialTicks, int pass)
private void renderHand(float partialTicks, int pass)
public void disableLightmap()
public void enableLightmap()
private void updateTorchFlicker()
private void updateLightmap(float partialTicks)
private float getNightVisionBrightness(EntityLivingBase entitylivingbaseIn, float partialTicks)
public void updateCameraAndRender(float partialTicks, long nanoTime)
private void createWorldIcon()
public void renderStreamIndicator(float partialTicks)
private boolean isDrawBlockOutline()
public void renderWorld(float partialTicks, long finishTimeNano)
private void renderWorldPass(int pass, float partialTicks, long finishTimeNano)
private void renderCloudsCheck(RenderGlobal renderGlobalIn, float partialTicks, int pass, double x, double y, double z)
private void addRainParticles()
protected void renderRainSnow(float partialTicks)
public void setupOverlayRendering()
private void updateFogColor(float partialTicks)
private void setupFog(int startCoords, float partialTicks)
public void setupFogColor(boolean black)
private java.nio.FloatBuffer setFogColorBuffer(float red, float green, float blue, float alpha)
public void resetData()
public MapItemRenderer getMapItemRenderer()
public static void drawNameplate(FontRenderer fontRendererIn, java.lang.String str, float x, float y, float z, int verticalShift, float viewerYaw, float viewerPitch, boolean isThirdPersonFrontal, boolean isSneaking)
public void displayItemActivation(ItemStack stack)
private void renderItemActivation(int p_190563_1_, int p_190563_2_, float p_190563_3_)