Class EntityRendererManager
java.lang.Object
net.minecraft.client.renderer.entity.EntityRendererManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate Quaternion
private final PlayerRenderer
private final FontRenderer
private World
final GameSettings
private final Map<String,
PlayerRenderer> final Map<EntityType<?>,
EntityRenderer<?>> private boolean
private static final RenderType
private boolean
final TextureManager
-
Constructor Summary
ConstructorDescriptionEntityRendererManager
(TextureManager p_i226034_1_, ItemRenderer p_i226034_2_, IReloadableResourceManager p_i226034_3_, FontRenderer p_i226034_4_, GameSettings p_i226034_5_) -
Method Summary
Modifier and TypeMethodDescriptiondouble
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_) getFont()
<E extends Entity>
intgetPackedLightCoords
(E p_229085_1_, float p_229085_2_) <T extends Entity>
EntityRenderer<? super T>getRenderer
(T p_78713_1_) 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
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
void
-
Field Details
-
SHADOW_RENDER_TYPE
-
renderers
-
playerRenderers
-
defaultPlayerRenderer
-
font
-
textureManager
-
level
-
camera
-
cameraOrientation
-
crosshairPickEntity
-
options
-
shouldRenderShadow
private boolean shouldRenderShadow -
renderHitBoxes
private boolean renderHitBoxes
-
-
Constructor Details
-
EntityRendererManager
public EntityRendererManager(TextureManager p_i226034_1_, ItemRenderer p_i226034_2_, IReloadableResourceManager p_i226034_3_, FontRenderer p_i226034_4_, GameSettings p_i226034_5_)
-
-
Method Details
-
getPackedLightCoords
-
register
public <T extends Entity> void register(EntityType<T> p_229087_1_, EntityRenderer<? super T> p_229087_2_) -
registerRenderers
-
validateRendererExistence
public void validateRendererExistence() -
getRenderer
-
prepare
-
overrideCameraOrientation
-
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
-
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double p_78714_1_, double p_78714_3_, double p_78714_5_) -
cameraOrientation
-
getFont
-
getSkinMap
-