Class EntityRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderDispatcher
- All Implemented Interfaces:
PreparableReloadListener
,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate Quaternion
private EntityModelSet
private Font
private ItemRenderer
private Level
private Map<String,EntityRenderer<? extends Player>>
Map<EntityType<?>,EntityRenderer<?>>
private boolean
private static RenderType
private boolean
-
Constructor Summary
ConstructorDescriptionEntityRenderDispatcher(TextureManager p_173998_, ItemRenderer p_173999_, Font p_174000_, Options p_174001_, EntityModelSet p_174002_)
-
Method Summary
Modifier and TypeMethodDescriptiondouble
distanceToSqr(double p_114379_, double p_114380_, double p_114381_)
double
distanceToSqr(Entity p_114472_)
private static void
fireVertex(PoseStack.Pose p_114415_, VertexConsumer p_114416_, float p_114417_, float p_114418_, float p_114419_, float p_114420_, float p_114421_)
<E extends Entity>
intgetPackedLightCoords(E p_114395_, float p_114396_)
<T extends Entity>
EntityRenderer<? super T>getRenderer(T p_114383_)
Map<String,EntityRenderer<? extends Player>>
void
onResourceManagerReload(ResourceManager p_174004_)
void
overrideCameraOrientation(Quaternion p_114413_)
void
<E extends Entity>
voidrender(E p_114385_, double p_114386_, double p_114387_, double p_114388_, float p_114389_, float p_114390_, PoseStack p_114391_, MultiBufferSource p_114392_, int p_114393_)
private static void
renderBlockShadow(PoseStack.Pose p_114432_, VertexConsumer p_114433_, LevelReader p_114434_, BlockPos p_114435_, double p_114436_, double p_114437_, double p_114438_, float p_114439_, float p_114440_)
private void
renderFlame(PoseStack p_114454_, MultiBufferSource p_114455_, Entity p_114456_)
private static void
renderHitbox(PoseStack p_114442_, VertexConsumer p_114443_, Entity p_114444_, float p_114445_)
private static void
renderShadow(PoseStack p_114458_, MultiBufferSource p_114459_, Entity p_114460_, float p_114461_, float p_114462_, LevelReader p_114463_, float p_114464_)
void
void
setRenderHitBoxes(boolean p_114474_)
void
setRenderShadow(boolean p_114469_)
private static void
shadowVertex(PoseStack.Pose p_114423_, VertexConsumer p_114424_, float p_114425_, float p_114426_, float p_114427_, float p_114428_, float p_114429_, float p_114430_)
<E extends Entity>
booleanshouldRender(E p_114398_, Frustum p_114399_, double p_114400_, double p_114401_, double p_114402_)
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
getResourceType, reload
-
Field Details
-
SHADOW_RENDER_TYPE
-
renderers
-
playerRenderers
-
textureManager
-
level
-
camera
-
cameraOrientation
-
crosshairPickEntity
-
itemRenderer
-
font
-
options
-
entityModels
-
shouldRenderShadow
private boolean shouldRenderShadow -
renderHitBoxes
private boolean renderHitBoxes
-
-
Constructor Details
-
EntityRenderDispatcher
public EntityRenderDispatcher(TextureManager p_173998_, ItemRenderer p_173999_, Font p_174000_, Options p_174001_, EntityModelSet p_174002_)
-
-
Method Details
-
getPackedLightCoords
-
getRenderer
-
prepare
-
overrideCameraOrientation
-
setRenderShadow
public void setRenderShadow(boolean p_114469_) -
setRenderHitBoxes
public void setRenderHitBoxes(boolean p_114474_) -
shouldRenderHitBoxes
public boolean shouldRenderHitBoxes() -
shouldRender
-
render
public <E extends Entity> void render(E p_114385_, double p_114386_, double p_114387_, double p_114388_, float p_114389_, float p_114390_, PoseStack p_114391_, MultiBufferSource p_114392_, int p_114393_) -
renderHitbox
private static void renderHitbox(PoseStack p_114442_, VertexConsumer p_114443_, Entity p_114444_, float p_114445_) -
renderFlame
-
fireVertex
private static void fireVertex(PoseStack.Pose p_114415_, VertexConsumer p_114416_, float p_114417_, float p_114418_, float p_114419_, float p_114420_, float p_114421_) -
renderShadow
private static void renderShadow(PoseStack p_114458_, MultiBufferSource p_114459_, Entity p_114460_, float p_114461_, float p_114462_, LevelReader p_114463_, float p_114464_) -
renderBlockShadow
private static void renderBlockShadow(PoseStack.Pose p_114432_, VertexConsumer p_114433_, LevelReader p_114434_, BlockPos p_114435_, double p_114436_, double p_114437_, double p_114438_, float p_114439_, float p_114440_) -
shadowVertex
private static void shadowVertex(PoseStack.Pose p_114423_, VertexConsumer p_114424_, float p_114425_, float p_114426_, float p_114427_, float p_114428_, float p_114429_, float p_114430_) -
setLevel
-
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double p_114379_, double p_114380_, double p_114381_) -
cameraOrientation
-
getSkinMap
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-