Class GuardianRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<Guardian>
net.minecraft.client.renderer.entity.LivingEntityRenderer<Guardian,GuardianModel>
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
FieldsModifier and TypeFieldDescriptionprivate static final RenderType
private static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorsModifierConstructorDescriptionGuardianRenderer
(EntityRendererProvider.Context p_174159_) protected
GuardianRenderer
(EntityRendererProvider.Context pContext, float pShadowRadius, ModelLayerLocation pLayer) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3
getPosition
(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) getTextureLocation
(Guardian pEntity) Returns the location of an entity's texture.void
render
(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) boolean
shouldRender
(Guardian pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) private static void
vertex
(VertexConsumer pConsumer, PoseStack.Pose pPose, float pX, float pY, float pZ, int pRed, int pGreen, int pBlue, float pU, float pV) Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer
getShadowRadius, 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 pContext, float pShadowRadius, ModelLayerLocation pLayer)
-
-
Method Details
-
shouldRender
public boolean shouldRender(Guardian pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) - Overrides:
shouldRender
in classEntityRenderer<Guardian>
-
getPosition
-
render
public void render(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
render
in classLivingEntityRenderer<Guardian,
GuardianModel>
-
vertex
private static void vertex(VertexConsumer pConsumer, PoseStack.Pose pPose, float pX, float pY, float pZ, int pRed, int pGreen, int pBlue, float pU, float pV) -
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocation
in interfaceRenderLayerParent<Guardian,
GuardianModel> - Specified by:
getTextureLocation
in classEntityRenderer<Guardian>
-