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 context, float shadowRadius, ModelLayerLocation layer) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3
getPosition
(LivingEntity livingEntity, double yOffset, float partialTick) getTextureLocation
(Guardian entity) Returns the location of an entity's texture.void
render
(Guardian entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) boolean
shouldRender
(Guardian livingEntity, Frustum camera, double camX, double camY, double camZ) private static void
vertex
(VertexConsumer consumer, PoseStack.Pose pose, float x, float y, float z, int red, int green, int blue, float u, float v) 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 context, float shadowRadius, ModelLayerLocation layer)
-
-
Method Details
-
shouldRender
public boolean shouldRender(Guardian livingEntity, Frustum camera, double camX, double camY, double camZ) - Overrides:
shouldRender
in classEntityRenderer<Guardian>
-
getPosition
-
render
public void render(Guardian entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) - Overrides:
render
in classLivingEntityRenderer<Guardian,
GuardianModel>
-
vertex
private static void vertex(VertexConsumer consumer, PoseStack.Pose pose, float x, float y, float z, int red, int green, int blue, float u, float v) -
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocation
in interfaceRenderLayerParent<Guardian,
GuardianModel> - Specified by:
getTextureLocation
in classEntityRenderer<Guardian>
-