Class GuardianRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<T>
-
- net.minecraft.client.renderer.entity.LivingRenderer<T,M>
-
- net.minecraft.client.renderer.entity.MobRenderer<GuardianEntity,GuardianModel>
-
- net.minecraft.client.renderer.entity.GuardianRenderer
-
- All Implemented Interfaces:
IEntityRenderer<GuardianEntity,GuardianModel>
- Direct Known Subclasses:
ElderGuardianRenderer
public class GuardianRenderer extends MobRenderer<GuardianEntity,GuardianModel>
-
-
Field Summary
Fields Modifier and Type Field Description private static RenderType
BEAM_RENDER_TYPE
private static ResourceLocation
GUARDIAN_BEAM_LOCATION
private static ResourceLocation
GUARDIAN_LOCATION
-
Fields inherited from class net.minecraft.client.renderer.entity.LivingRenderer
layers, model
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Modifier Constructor Description GuardianRenderer(EntityRendererManager p_i46171_1_)
protected
GuardianRenderer(EntityRendererManager p_i50968_1_, float p_i50968_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private Vector3d
getPosition(LivingEntity p_177110_1_, double p_177110_2_, float p_177110_4_)
ResourceLocation
getTextureLocation(GuardianEntity p_110775_1_)
void
render(GuardianEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
boolean
shouldRender(GuardianEntity p_225626_1_, ClippingHelper p_225626_2_, double p_225626_3_, double p_225626_5_, double p_225626_7_)
private static void
vertex(IVertexBuilder p_229108_0_, Matrix4f p_229108_1_, Matrix3f p_229108_2_, float p_229108_3_, float p_229108_4_, float p_229108_5_, int p_229108_6_, int p_229108_7_, int p_229108_8_, float p_229108_9_, float p_229108_10_)
-
Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer
addVertexPair, renderSide, shouldShowName
-
Methods inherited from class net.minecraft.client.renderer.entity.LivingRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isShaking, scale, setupRotations
-
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag
-
-
-
-
Field Detail
-
GUARDIAN_LOCATION
private static final ResourceLocation GUARDIAN_LOCATION
-
GUARDIAN_BEAM_LOCATION
private static final ResourceLocation GUARDIAN_BEAM_LOCATION
-
BEAM_RENDER_TYPE
private static final RenderType BEAM_RENDER_TYPE
-
-
Constructor Detail
-
GuardianRenderer
public GuardianRenderer(EntityRendererManager p_i46171_1_)
-
GuardianRenderer
protected GuardianRenderer(EntityRendererManager p_i50968_1_, float p_i50968_2_)
-
-
Method Detail
-
shouldRender
public boolean shouldRender(GuardianEntity p_225626_1_, ClippingHelper p_225626_2_, double p_225626_3_, double p_225626_5_, double p_225626_7_)
- Overrides:
shouldRender
in classMobRenderer<GuardianEntity,GuardianModel>
-
getPosition
private Vector3d getPosition(LivingEntity p_177110_1_, double p_177110_2_, float p_177110_4_)
-
render
public void render(GuardianEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
- Overrides:
render
in classMobRenderer<GuardianEntity,GuardianModel>
-
vertex
private static void vertex(IVertexBuilder p_229108_0_, Matrix4f p_229108_1_, Matrix3f p_229108_2_, float p_229108_3_, float p_229108_4_, float p_229108_5_, int p_229108_6_, int p_229108_7_, int p_229108_8_, float p_229108_9_, float p_229108_10_)
-
getTextureLocation
public ResourceLocation getTextureLocation(GuardianEntity p_110775_1_)
- Specified by:
getTextureLocation
in interfaceIEntityRenderer<GuardianEntity,GuardianModel>
- Specified by:
getTextureLocation
in classEntityRenderer<GuardianEntity>
-
-