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 RenderType
private static ResourceLocation
private static 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_114842_, Matrix4f p_114843_, Matrix3f p_114844_, float p_114845_, float p_114846_, float p_114847_, int p_114848_, int p_114849_, int p_114850_, float p_114851_, float p_114852_)
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, 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_114842_, Matrix4f p_114843_, Matrix3f p_114844_, float p_114845_, float p_114846_, float p_114847_, int p_114848_, int p_114849_, int p_114850_, float p_114851_, float p_114852_) -
getTextureLocation
- Specified by:
getTextureLocation
in interfaceRenderLayerParent<Guardian,GuardianModel>
- Specified by:
getTextureLocation
in classEntityRenderer<Guardian>
-