public class EntityRendererManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Quaternion |
cameraOrientation |
private boolean |
debugBoundingBox |
ActiveRenderInfo |
info |
GameSettings |
options |
private PlayerRenderer |
playerRenderer |
Entity |
pointedEntity |
java.util.Map<EntityType<?>,EntityRenderer<?>> |
renderers |
private boolean |
renderShadow |
private static RenderType |
SHADOW_RENDER_TYPE |
private java.util.Map<java.lang.String,PlayerRenderer> |
skinMap |
private FontRenderer |
textRenderer |
TextureManager |
textureManager |
private World |
world |
Constructor and Description |
---|
EntityRendererManager(TextureManager textureManagerIn,
ItemRenderer itemRendererIn,
IReloadableResourceManager resourceManagerIn,
FontRenderer fontRendererIn,
GameSettings gameSettingsIn) |
Modifier and Type | Method and Description |
---|---|
void |
cacheActiveRenderInfo(World worldIn,
ActiveRenderInfo activeRenderInfoIn,
Entity entityIn) |
private static void |
fireVertex(MatrixStack.Entry matrixEntryIn,
IVertexBuilder bufferIn,
float x,
float y,
float z,
float texU,
float texV) |
Quaternion |
getCameraOrientation() |
double |
getDistanceToCamera(double x,
double y,
double z) |
FontRenderer |
getFontRenderer() |
<E extends Entity> |
getPackedLight(E entityIn,
float partialTicks) |
<T extends Entity> |
getRenderer(T entityIn) |
java.util.Map<java.lang.String,PlayerRenderer> |
getSkinMap() |
boolean |
isDebugBoundingBox() |
<T extends Entity> |
register(EntityType<T> entityTypeIn,
EntityRenderer<? super T> entityRendererIn) |
private void |
registerRenderers(ItemRenderer itemRendererIn,
IReloadableResourceManager resourceManagerIn) |
private static void |
renderBlockShadow(MatrixStack.Entry matrixEntryIn,
IVertexBuilder bufferIn,
IWorldReader worldIn,
BlockPos blockPosIn,
double xIn,
double yIn,
double zIn,
float sizeIn,
float weightIn) |
private void |
renderBoundingBox(MatrixStack matrixStackIn,
IVertexBuilder bufferIn,
Entity entityIn,
float red,
float green,
float blue) |
private void |
renderDebugBoundingBox(MatrixStack matrixStackIn,
IVertexBuilder bufferIn,
Entity entityIn,
float partialTicks) |
<E extends Entity> |
renderEntityStatic(E entityIn,
double xIn,
double yIn,
double zIn,
float rotationYawIn,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
private void |
renderFire(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
Entity entityIn) |
private static void |
renderShadow(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
Entity entityIn,
float weightIn,
float partialTicks,
IWorldReader worldIn,
float sizeIn) |
void |
setCameraOrientation(Quaternion quaternionIn) |
void |
setDebugBoundingBox(boolean debugBoundingBoxIn) |
void |
setRenderShadow(boolean renderShadowIn) |
void |
setWorld(World worldIn) |
private static void |
shadowVertex(MatrixStack.Entry matrixEntryIn,
IVertexBuilder bufferIn,
float alphaIn,
float xIn,
float yIn,
float zIn,
float texU,
float texV) |
<E extends Entity> |
shouldRender(E entityIn,
ClippingHelperImpl frustumIn,
double camX,
double camY,
double camZ) |
double |
squareDistanceTo(Entity entityIn) |
void |
validateRendererExistence() |
private static final RenderType SHADOW_RENDER_TYPE
public final java.util.Map<EntityType<?>,EntityRenderer<?>> renderers
private final java.util.Map<java.lang.String,PlayerRenderer> skinMap
private final PlayerRenderer playerRenderer
private final FontRenderer textRenderer
public final TextureManager textureManager
private World world
public ActiveRenderInfo info
private Quaternion cameraOrientation
public Entity pointedEntity
public final GameSettings options
private boolean renderShadow
private boolean debugBoundingBox
public EntityRendererManager(TextureManager textureManagerIn, ItemRenderer itemRendererIn, IReloadableResourceManager resourceManagerIn, FontRenderer fontRendererIn, GameSettings gameSettingsIn)
public <E extends Entity> int getPackedLight(E entityIn, float partialTicks)
public <T extends Entity> void register(EntityType<T> entityTypeIn, EntityRenderer<? super T> entityRendererIn)
private void registerRenderers(ItemRenderer itemRendererIn, IReloadableResourceManager resourceManagerIn)
public void validateRendererExistence()
public <T extends Entity> EntityRenderer<? super T> getRenderer(T entityIn)
public void cacheActiveRenderInfo(World worldIn, ActiveRenderInfo activeRenderInfoIn, Entity entityIn)
public void setCameraOrientation(Quaternion quaternionIn)
public void setRenderShadow(boolean renderShadowIn)
public void setDebugBoundingBox(boolean debugBoundingBoxIn)
public boolean isDebugBoundingBox()
public <E extends Entity> boolean shouldRender(E entityIn, ClippingHelperImpl frustumIn, double camX, double camY, double camZ)
public <E extends Entity> void renderEntityStatic(E entityIn, double xIn, double yIn, double zIn, float rotationYawIn, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
private void renderDebugBoundingBox(MatrixStack matrixStackIn, IVertexBuilder bufferIn, Entity entityIn, float partialTicks)
private void renderBoundingBox(MatrixStack matrixStackIn, IVertexBuilder bufferIn, Entity entityIn, float red, float green, float blue)
private void renderFire(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, Entity entityIn)
private static void fireVertex(MatrixStack.Entry matrixEntryIn, IVertexBuilder bufferIn, float x, float y, float z, float texU, float texV)
private static void renderShadow(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, Entity entityIn, float weightIn, float partialTicks, IWorldReader worldIn, float sizeIn)
private static void renderBlockShadow(MatrixStack.Entry matrixEntryIn, IVertexBuilder bufferIn, IWorldReader worldIn, BlockPos blockPosIn, double xIn, double yIn, double zIn, float sizeIn, float weightIn)
private static void shadowVertex(MatrixStack.Entry matrixEntryIn, IVertexBuilder bufferIn, float alphaIn, float xIn, float yIn, float zIn, float texU, float texV)
public void setWorld(@Nullable World worldIn)
public double squareDistanceTo(Entity entityIn)
public double getDistanceToCamera(double x, double y, double z)
public Quaternion getCameraOrientation()
public FontRenderer getFontRenderer()
public java.util.Map<java.lang.String,PlayerRenderer> getSkinMap()