类 GuardianRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
net.minecraft.client.renderer.entity.MobRenderer<Guardian,GuardianModel>
net.minecraft.client.renderer.entity.GuardianRenderer
- 所有已实现的接口:
RenderLayerParent<Guardian,
GuardianModel>
- 直接已知子类:
ElderGuardianRenderer
-
字段概要
字段修饰符和类型字段说明private static final RenderType
private static final ResourceLocation
private static final ResourceLocation
从类继承的字段 net.minecraft.client.renderer.entity.MobRenderer
LEASH_RENDER_STEPS
从类继承的字段 net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
从类继承的字段 net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
构造器概要
构造器限定符构造器说明GuardianRenderer
(EntityRendererProvider.Context p_174159_) protected
GuardianRenderer
(EntityRendererProvider.Context pContext, float pShadowRadius, ModelLayerLocation pLayer) -
方法概要
修饰符和类型方法说明private Vec3
getPosition
(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) getTextureLocation
(Guardian pEntity) void
render
(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) boolean
shouldRender
(Guardian pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) private static void
vertex
(VertexConsumer pConsumer, org.joml.Matrix4f pPose, org.joml.Matrix3f pNormal, float pX, float pY, float pZ, int pRed, int pGreen, int pBlue, float pU, float pV) 从类继承的方法 net.minecraft.client.renderer.entity.MobRenderer
shouldShowName
从类继承的方法 net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, scale, setupRotations
从类继承的方法 net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag
-
字段详细资料
-
GUARDIAN_LOCATION
-
GUARDIAN_BEAM_LOCATION
-
BEAM_RENDER_TYPE
-
-
构造器详细资料
-
GuardianRenderer
-
GuardianRenderer
protected GuardianRenderer(EntityRendererProvider.Context pContext, float pShadowRadius, ModelLayerLocation pLayer)
-
-
方法详细资料
-
shouldRender
public boolean shouldRender(Guardian pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) - 覆盖:
shouldRender
在类中MobRenderer<Guardian,
GuardianModel>
-
getPosition
-
render
public void render(Guardian pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) - 覆盖:
render
在类中MobRenderer<Guardian,
GuardianModel>
-
vertex
private static void vertex(VertexConsumer pConsumer, org.joml.Matrix4f pPose, org.joml.Matrix3f pNormal, float pX, float pY, float pZ, int pRed, int pGreen, int pBlue, float pU, float pV) -
getTextureLocation
- 指定者:
getTextureLocation
在接口中RenderLayerParent<Guardian,
GuardianModel> - 指定者:
getTextureLocation
在类中EntityRenderer<Guardian>
-