Class EntityRendererManager
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRendererManager
-
public class EntityRendererManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description ActiveRenderInfo
camera
private Quaternion
cameraOrientation
Entity
crosshairPickEntity
private PlayerRenderer
defaultPlayerRenderer
private FontRenderer
font
private World
level
GameSettings
options
private java.util.Map<java.lang.String,PlayerRenderer>
playerRenderers
java.util.Map<EntityType<?>,EntityRenderer<?>>
renderers
private boolean
renderHitBoxes
private static RenderType
SHADOW_RENDER_TYPE
private boolean
shouldRenderShadow
TextureManager
textureManager
-
Constructor Summary
Constructors Constructor Description EntityRendererManager(TextureManager p_i226034_1_, ItemRenderer p_i226034_2_, IReloadableResourceManager p_i226034_3_, FontRenderer p_i226034_4_, GameSettings p_i226034_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Quaternion
cameraOrientation()
double
distanceToSqr(double p_78714_1_, double p_78714_3_, double p_78714_5_)
double
distanceToSqr(Entity p_229099_1_)
private static void
fireVertex(MatrixStack.Entry p_229090_0_, IVertexBuilder p_229090_1_, float p_229090_2_, float p_229090_3_, float p_229090_4_, float p_229090_5_, float p_229090_6_)
FontRenderer
getFont()
<E extends Entity>
intgetPackedLightCoords(E p_229085_1_, float p_229085_2_)
<T extends Entity>
EntityRenderer<? super T>getRenderer(T p_78713_1_)
java.util.Map<java.lang.String,PlayerRenderer>
getSkinMap()
void
overrideCameraOrientation(Quaternion p_229089_1_)
void
prepare(World p_229088_1_, ActiveRenderInfo p_229088_2_, Entity p_229088_3_)
<T extends Entity>
voidregister(EntityType<T> p_229087_1_, EntityRenderer<? super T> p_229087_2_)
private void
registerRenderers(ItemRenderer p_229097_1_, IReloadableResourceManager p_229097_2_)
<E extends Entity>
voidrender(E p_229084_1_, double p_229084_2_, double p_229084_4_, double p_229084_6_, float p_229084_8_, float p_229084_9_, MatrixStack p_229084_10_, IRenderTypeBuffer p_229084_11_, int p_229084_12_)
private static void
renderBlockShadow(MatrixStack.Entry p_229092_0_, IVertexBuilder p_229092_1_, IWorldReader p_229092_2_, BlockPos p_229092_3_, double p_229092_4_, double p_229092_6_, double p_229092_8_, float p_229092_10_, float p_229092_11_)
private void
renderBox(MatrixStack p_229094_1_, IVertexBuilder p_229094_2_, Entity p_229094_3_, float p_229094_4_, float p_229094_5_, float p_229094_6_)
private void
renderFlame(MatrixStack p_229095_1_, IRenderTypeBuffer p_229095_2_, Entity p_229095_3_)
private void
renderHitbox(MatrixStack p_229093_1_, IVertexBuilder p_229093_2_, Entity p_229093_3_, float p_229093_4_)
private static void
renderShadow(MatrixStack p_229096_0_, IRenderTypeBuffer p_229096_1_, Entity p_229096_2_, float p_229096_3_, float p_229096_4_, IWorldReader p_229096_5_, float p_229096_6_)
void
setLevel(World p_78717_1_)
void
setRenderHitBoxes(boolean p_178629_1_)
void
setRenderShadow(boolean p_178633_1_)
private static void
shadowVertex(MatrixStack.Entry p_229091_0_, IVertexBuilder p_229091_1_, float p_229091_2_, float p_229091_3_, float p_229091_4_, float p_229091_5_, float p_229091_6_, float p_229091_7_)
<E extends Entity>
booleanshouldRender(E p_229086_1_, ClippingHelper p_229086_2_, double p_229086_3_, double p_229086_5_, double p_229086_7_)
boolean
shouldRenderHitBoxes()
void
validateRendererExistence()
-
-
-
Field Detail
-
SHADOW_RENDER_TYPE
private static final RenderType SHADOW_RENDER_TYPE
-
renderers
public final java.util.Map<EntityType<?>,EntityRenderer<?>> renderers
-
playerRenderers
private final java.util.Map<java.lang.String,PlayerRenderer> playerRenderers
-
defaultPlayerRenderer
private final PlayerRenderer defaultPlayerRenderer
-
font
private final FontRenderer font
-
textureManager
public final TextureManager textureManager
-
level
private World level
-
camera
public ActiveRenderInfo camera
-
cameraOrientation
private Quaternion cameraOrientation
-
crosshairPickEntity
public Entity crosshairPickEntity
-
options
public final GameSettings options
-
shouldRenderShadow
private boolean shouldRenderShadow
-
renderHitBoxes
private boolean renderHitBoxes
-
-
Constructor Detail
-
EntityRendererManager
public EntityRendererManager(TextureManager p_i226034_1_, ItemRenderer p_i226034_2_, IReloadableResourceManager p_i226034_3_, FontRenderer p_i226034_4_, GameSettings p_i226034_5_)
-
-
Method Detail
-
getPackedLightCoords
public <E extends Entity> int getPackedLightCoords(E p_229085_1_, float p_229085_2_)
-
register
public <T extends Entity> void register(EntityType<T> p_229087_1_, EntityRenderer<? super T> p_229087_2_)
-
registerRenderers
private void registerRenderers(ItemRenderer p_229097_1_, IReloadableResourceManager p_229097_2_)
-
validateRendererExistence
public void validateRendererExistence()
-
getRenderer
public <T extends Entity> EntityRenderer<? super T> getRenderer(T p_78713_1_)
-
prepare
public void prepare(World p_229088_1_, ActiveRenderInfo p_229088_2_, Entity p_229088_3_)
-
overrideCameraOrientation
public void overrideCameraOrientation(Quaternion p_229089_1_)
-
setRenderShadow
public void setRenderShadow(boolean p_178633_1_)
-
setRenderHitBoxes
public void setRenderHitBoxes(boolean p_178629_1_)
-
shouldRenderHitBoxes
public boolean shouldRenderHitBoxes()
-
shouldRender
public <E extends Entity> boolean shouldRender(E p_229086_1_, ClippingHelper p_229086_2_, double p_229086_3_, double p_229086_5_, double p_229086_7_)
-
render
public <E extends Entity> void render(E p_229084_1_, double p_229084_2_, double p_229084_4_, double p_229084_6_, float p_229084_8_, float p_229084_9_, MatrixStack p_229084_10_, IRenderTypeBuffer p_229084_11_, int p_229084_12_)
-
renderHitbox
private void renderHitbox(MatrixStack p_229093_1_, IVertexBuilder p_229093_2_, Entity p_229093_3_, float p_229093_4_)
-
renderBox
private void renderBox(MatrixStack p_229094_1_, IVertexBuilder p_229094_2_, Entity p_229094_3_, float p_229094_4_, float p_229094_5_, float p_229094_6_)
-
renderFlame
private void renderFlame(MatrixStack p_229095_1_, IRenderTypeBuffer p_229095_2_, Entity p_229095_3_)
-
fireVertex
private static void fireVertex(MatrixStack.Entry p_229090_0_, IVertexBuilder p_229090_1_, float p_229090_2_, float p_229090_3_, float p_229090_4_, float p_229090_5_, float p_229090_6_)
-
renderShadow
private static void renderShadow(MatrixStack p_229096_0_, IRenderTypeBuffer p_229096_1_, Entity p_229096_2_, float p_229096_3_, float p_229096_4_, IWorldReader p_229096_5_, float p_229096_6_)
-
renderBlockShadow
private static void renderBlockShadow(MatrixStack.Entry p_229092_0_, IVertexBuilder p_229092_1_, IWorldReader p_229092_2_, BlockPos p_229092_3_, double p_229092_4_, double p_229092_6_, double p_229092_8_, float p_229092_10_, float p_229092_11_)
-
shadowVertex
private static void shadowVertex(MatrixStack.Entry p_229091_0_, IVertexBuilder p_229091_1_, float p_229091_2_, float p_229091_3_, float p_229091_4_, float p_229091_5_, float p_229091_6_, float p_229091_7_)
-
setLevel
public void setLevel(@Nullable World p_78717_1_)
-
distanceToSqr
public double distanceToSqr(Entity p_229099_1_)
-
distanceToSqr
public double distanceToSqr(double p_78714_1_, double p_78714_3_, double p_78714_5_)
-
cameraOrientation
public Quaternion cameraOrientation()
-
getFont
public FontRenderer getFont()
-
getSkinMap
public java.util.Map<java.lang.String,PlayerRenderer> getSkinMap()
-
-