public class RenderManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
debugBoundingBox |
java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> |
entityRenderMap |
GameSettings |
options |
private RenderPlayer |
playerRenderer |
float |
playerViewX |
float |
playerViewY |
Entity |
pointedEntity |
TextureManager |
renderEngine |
private boolean |
renderOutlines |
private double |
renderPosX |
private double |
renderPosY |
private double |
renderPosZ |
private boolean |
renderShadow |
Entity |
renderViewEntity |
private java.util.Map<java.lang.String,RenderPlayer> |
skinMap |
private FontRenderer |
textRenderer |
double |
viewerPosX |
double |
viewerPosY |
double |
viewerPosZ |
World |
world |
Constructor and Description |
---|
RenderManager(TextureManager renderEngineIn,
RenderItem itemRendererIn) |
Modifier and Type | Method and Description |
---|---|
void |
cacheActiveRenderInfo(World worldIn,
FontRenderer textRendererIn,
Entity livingPlayerIn,
Entity pointedEntityIn,
GameSettings optionsIn,
float partialTicks) |
double |
getDistanceToCamera(double x,
double y,
double z) |
<T extends Entity> |
getEntityClassRenderObject(java.lang.Class<? extends Entity> entityClass) |
<T extends Entity> |
getEntityRenderObject(Entity entityIn) |
FontRenderer |
getFontRenderer() |
java.util.Map<java.lang.String,RenderPlayer> |
getSkinMap() |
boolean |
isDebugBoundingBox() |
boolean |
isRenderMultipass(Entity p_188390_1_) |
boolean |
isRenderShadow() |
private void |
renderDebugBoundingBox(Entity entityIn,
double x,
double y,
double z,
float entityYaw,
float partialTicks) |
void |
renderEntity(Entity entityIn,
double x,
double y,
double z,
float yaw,
float partialTicks,
boolean p_188391_10_) |
void |
renderEntityStatic(Entity entityIn,
float partialTicks,
boolean p_188388_3_) |
void |
renderMultipass(Entity p_188389_1_,
float p_188389_2_) |
void |
setDebugBoundingBox(boolean debugBoundingBoxIn) |
void |
setPlayerViewY(float playerViewYIn) |
void |
setRenderOutlines(boolean renderOutlinesIn) |
void |
setRenderPosition(double renderPosXIn,
double renderPosYIn,
double renderPosZIn) |
void |
setRenderShadow(boolean renderShadowIn) |
void |
setWorld(World worldIn) |
boolean |
shouldRender(Entity entityIn,
ICamera camera,
double camX,
double camY,
double camZ) |
public final java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> entityRenderMap
private final java.util.Map<java.lang.String,RenderPlayer> skinMap
private final RenderPlayer playerRenderer
private FontRenderer textRenderer
private double renderPosX
private double renderPosY
private double renderPosZ
public TextureManager renderEngine
public World world
public Entity renderViewEntity
public Entity pointedEntity
public float playerViewY
public float playerViewX
public GameSettings options
public double viewerPosX
public double viewerPosY
public double viewerPosZ
private boolean renderOutlines
private boolean renderShadow
private boolean debugBoundingBox
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
public java.util.Map<java.lang.String,RenderPlayer> getSkinMap()
public void setRenderPosition(double renderPosXIn, double renderPosYIn, double renderPosZIn)
public <T extends Entity> Render<T> getEntityClassRenderObject(java.lang.Class<? extends Entity> entityClass)
@Nullable public <T extends Entity> Render<T> getEntityRenderObject(Entity entityIn)
public void cacheActiveRenderInfo(World worldIn, FontRenderer textRendererIn, Entity livingPlayerIn, Entity pointedEntityIn, GameSettings optionsIn, float partialTicks)
public void setPlayerViewY(float playerViewYIn)
public boolean isRenderShadow()
public void setRenderShadow(boolean renderShadowIn)
public void setDebugBoundingBox(boolean debugBoundingBoxIn)
public boolean isDebugBoundingBox()
public boolean isRenderMultipass(Entity p_188390_1_)
public boolean shouldRender(Entity entityIn, ICamera camera, double camX, double camY, double camZ)
public void renderEntityStatic(Entity entityIn, float partialTicks, boolean p_188388_3_)
public void renderEntity(Entity entityIn, double x, double y, double z, float yaw, float partialTicks, boolean p_188391_10_)
public void renderMultipass(Entity p_188389_1_, float p_188389_2_)
private void renderDebugBoundingBox(Entity entityIn, double x, double y, double z, float entityYaw, float partialTicks)
public void setWorld(@Nullable World worldIn)
public double getDistanceToCamera(double x, double y, double z)
public FontRenderer getFontRenderer()
public void setRenderOutlines(boolean renderOutlinesIn)