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 final BlockRenderDispatcher
private org.joml.Quaternionf
private final EntityModelSet
private final Font
private final ItemInHandRenderer
private final ItemRenderer
private Level
private static final float
final Options
private Map
<PlayerSkin.Model, EntityRenderer<? extends Player>> Map
<EntityType<?>, EntityRenderer<?>> private boolean
private static final float
private static final RenderType
private boolean
final TextureManager
-
Constructor Summary
ConstructorDescriptionEntityRenderDispatcher
(Minecraft p_234579_, TextureManager p_234580_, ItemRenderer p_234581_, BlockRenderDispatcher p_234582_, Font p_234583_, Options p_234584_, EntityModelSet p_234585_) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Quaternionf
double
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
<PlayerSkin.Model, EntityRenderer<? extends Player>> void
onResourceManagerReload
(ResourceManager p_174004_) void
overrideCameraOrientation
(org.joml.Quaternionf p_254264_) 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_277956_, VertexConsumer p_277533_, ChunkAccess p_277501_, LevelReader p_277622_, BlockPos p_277911_, double p_277682_, double p_278099_, double p_277806_, float p_277844_, float p_277496_) private void
renderFlame
(PoseStack p_114454_, MultiBufferSource p_114455_, Entity p_114456_, org.joml.Quaternionf p_304964_) 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
reload
-
Field Details
-
SHADOW_RENDER_TYPE
-
MAX_SHADOW_RADIUS
private static final float MAX_SHADOW_RADIUS- See Also:
-
SHADOW_POWER_FALLOFF_Y
private static final float SHADOW_POWER_FALLOFF_Y- See Also:
-
renderers
-
playerRenderers
-
textureManager
-
level
-
camera
-
cameraOrientation
private org.joml.Quaternionf cameraOrientation -
crosshairPickEntity
-
itemRenderer
-
blockRenderDispatcher
-
itemInHandRenderer
-
font
-
options
-
entityModels
-
shouldRenderShadow
private boolean shouldRenderShadow -
renderHitBoxes
private boolean renderHitBoxes
-
-
Constructor Details
-
EntityRenderDispatcher
public EntityRenderDispatcher(Minecraft p_234579_, TextureManager p_234580_, ItemRenderer p_234581_, BlockRenderDispatcher p_234582_, Font p_234583_, Options p_234584_, EntityModelSet p_234585_)
-
-
Method Details
-
getPackedLightCoords
-
getRenderer
-
prepare
-
overrideCameraOrientation
public void overrideCameraOrientation(org.joml.Quaternionf p_254264_) -
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
private void renderFlame(PoseStack p_114454_, MultiBufferSource p_114455_, Entity p_114456_, org.joml.Quaternionf p_304964_) -
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_277956_, VertexConsumer p_277533_, ChunkAccess p_277501_, LevelReader p_277622_, BlockPos p_277911_, double p_277682_, double p_278099_, double p_277806_, float p_277844_, float p_277496_) -
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
public org.joml.Quaternionf cameraOrientation() -
getItemInHandRenderer
-
getSkinMap
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-