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 RenderTypeprivate static final ResourceLocationprivate static final ResourceLocationFields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, modelFields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength -
Constructor Summary
ConstructorsModifierConstructorDescriptionGuardianRenderer(EntityRendererProvider.Context p_174159_) protectedGuardianRenderer(EntityRendererProvider.Context pContext, float pShadowRadius, ModelLayerLocation pLayer) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3getPosition(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) getTextureLocation(Guardian pEntity) Returns the location of an entity's texture.voidrender(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) booleanshouldRender(Guardian pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) private static voidvertex(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, shouldShowNameMethods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, scale, setupRotationsMethods 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:
shouldRenderin classEntityRenderer<Guardian>
-
getPosition
-
render
public void render(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
renderin 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:
getTextureLocationin interfaceRenderLayerParent<Guardian,GuardianModel> - Specified by:
getTextureLocationin classEntityRenderer<Guardian>
-