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 context, float shadowRadius, ModelLayerLocation layer) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3getPosition(LivingEntity livingEntity, double yOffset, float partialTick) getTextureLocation(Guardian entity) Returns the location of an entity's texture.voidrender(Guardian entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) booleanshouldRender(Guardian livingEntity, Frustum camera, double camX, double camY, double camZ) private static voidvertex(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, 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 context, float shadowRadius, ModelLayerLocation layer)
-
-
Method Details
-
shouldRender
public boolean shouldRender(Guardian livingEntity, Frustum camera, double camX, double camY, double camZ) - Overrides:
shouldRenderin classEntityRenderer<Guardian>
-
getPosition
-
render
public void render(Guardian entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) - Overrides:
renderin 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:
getTextureLocationin interfaceRenderLayerParent<Guardian,GuardianModel> - Specified by:
getTextureLocationin classEntityRenderer<Guardian>
-