Class GuardianRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
net.minecraft.client.renderer.entity.MobRenderer<Guardian,GuardianModel>
net.minecraft.client.renderer.entity.GuardianRenderer
- All Implemented Interfaces:
RenderLayerParent<Guardian,
GuardianModel>
- Direct Known Subclasses:
ElderGuardianRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final RenderType
private static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.minecraft.client.renderer.entity.MobRenderer
LEASH_RENDER_STEPS
Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ModifierConstructorDescriptionGuardianRenderer
(EntityRendererProvider.Context p_174159_) protected
GuardianRenderer
(EntityRendererProvider.Context p_174161_, float p_174162_, ModelLayerLocation p_174163_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3
getPosition
(LivingEntity p_114803_, double p_114804_, float p_114805_) getTextureLocation
(Guardian p_114827_) void
render
(Guardian p_114829_, float p_114830_, float p_114831_, PoseStack p_114832_, MultiBufferSource p_114833_, int p_114834_) boolean
shouldRender
(Guardian p_114836_, Frustum p_114837_, double p_114838_, double p_114839_, double p_114840_) private static void
vertex
(VertexConsumer p_253637_, org.joml.Matrix4f p_253920_, org.joml.Matrix3f p_253881_, float p_253994_, float p_254492_, float p_254474_, int p_254080_, int p_253655_, int p_254133_, float p_254233_, float p_253939_) Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer
shouldShowName
Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, scale, setupRotations
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag
-
Field Details
-
GUARDIAN_LOCATION
-
GUARDIAN_BEAM_LOCATION
-
BEAM_RENDER_TYPE
-
-
Constructor Details
-
GuardianRenderer
-
GuardianRenderer
protected GuardianRenderer(EntityRendererProvider.Context p_174161_, float p_174162_, ModelLayerLocation p_174163_)
-
-
Method Details
-
shouldRender
public boolean shouldRender(Guardian p_114836_, Frustum p_114837_, double p_114838_, double p_114839_, double p_114840_) - Overrides:
shouldRender
in classMobRenderer<Guardian,
GuardianModel>
-
getPosition
-
render
public void render(Guardian p_114829_, float p_114830_, float p_114831_, PoseStack p_114832_, MultiBufferSource p_114833_, int p_114834_) - Overrides:
render
in classMobRenderer<Guardian,
GuardianModel>
-
vertex
private static void vertex(VertexConsumer p_253637_, org.joml.Matrix4f p_253920_, org.joml.Matrix3f p_253881_, float p_253994_, float p_254492_, float p_254474_, int p_254080_, int p_253655_, int p_254133_, float p_254233_, float p_253939_) -
getTextureLocation
- Specified by:
getTextureLocation
in interfaceRenderLayerParent<Guardian,
GuardianModel> - Specified by:
getTextureLocation
in classEntityRenderer<Guardian>
-