Class DisplayRenderer<T extends Display,S>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.DisplayRenderer<T,S>
- Direct Known Subclasses:
DisplayRenderer.BlockDisplayRenderer
,DisplayRenderer.ItemDisplayRenderer
,DisplayRenderer.TextDisplayRenderer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ModifierConstructorDescriptionprotected
DisplayRenderer
(EntityRendererProvider.Context p_270168_) -
Method Summary
Modifier and TypeMethodDescriptionprivate org.joml.Quaternionf
calculateOrientation
(Display.RenderState p_277846_, T p_271013_, float p_294432_, org.joml.Quaternionf p_295809_) private static float
cameraXRot
(Camera p_295299_) private static float
cameraYrot
(Camera p_295988_) private static <T extends Display>
floatentityXRot
(T p_295884_, float p_294935_) private static <T extends Display>
floatentityYRot
(T p_295109_, float p_295760_) protected abstract S
getSubState
(T p_270246_) getTextureLocation
(T p_270675_) void
render
(T p_270405_, float p_270225_, float p_270279_, PoseStack p_270728_, MultiBufferSource p_270209_, int p_270298_) protected abstract void
renderInner
(T p_277862_, S p_277363_, PoseStack p_277686_, MultiBufferSource p_277429_, int p_278023_, float p_277453_) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
entityRenderDispatcher
-
-
Constructor Details
-
DisplayRenderer
-
-
Method Details
-
getTextureLocation
- Specified by:
getTextureLocation
in classEntityRenderer<T extends Display>
-
render
public void render(T p_270405_, float p_270225_, float p_270279_, PoseStack p_270728_, MultiBufferSource p_270209_, int p_270298_) - Overrides:
render
in classEntityRenderer<T extends Display>
-
calculateOrientation
private org.joml.Quaternionf calculateOrientation(Display.RenderState p_277846_, T p_271013_, float p_294432_, org.joml.Quaternionf p_295809_) -
cameraYrot
-
cameraXRot
-
entityYRot
-
entityXRot
-
getSubState
-
renderInner
protected abstract void renderInner(T p_277862_, S p_277363_, PoseStack p_277686_, MultiBufferSource p_277429_, int p_278023_, float p_277453_)
-