类 LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
- 所有已实现的接口:
RenderLayerParent<T,
M>
- 直接已知子类:
ArmorStandRenderer
,MobRenderer
,PlayerRenderer
public abstract class LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
extends EntityRenderer<T>
implements RenderLayerParent<T,M>
-
字段概要
字段修饰符和类型字段说明private static final float
protected final List<RenderLayer<T,
M>> private static final org.slf4j.Logger
protected M
从类继承的字段 net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final boolean
addLayer
(RenderLayer<T, M> pLayer) protected float
getAttackAnim
(T pLivingBase, float pPartialTickTime) protected float
protected float
getFlipDegrees
(T pLivingEntity) getModel()
static int
getOverlayCoords
(LivingEntity pLivingEntity, float pU) protected RenderType
getRenderType
(T pLivingEntity, boolean pBodyVisible, boolean pTranslucent, boolean pGlowing) protected float
getWhiteOverlayProgress
(T pLivingEntity, float pPartialTicks) protected boolean
isBodyVisible
(T pLivingEntity) static boolean
isEntityUpsideDown
(LivingEntity pEntity) protected boolean
void
render
(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) protected void
protected void
setupRotations
(T pEntityLiving, PoseStack pMatrixStack, float pAgeInTicks, float pRotationYaw, float pPartialTicks) protected boolean
shouldShowName
(T pEntity) private static float
sleepDirectionToRotation
(Direction pFacing) 从类继承的方法 net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, getTextureLocation, renderNameTag, shouldRender
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.renderer.entity.RenderLayerParent
getTextureLocation
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EYE_BED_OFFSET
private static final float EYE_BED_OFFSET- 另请参阅:
-
model
-
layers
-
-
构造器详细资料
-
LivingEntityRenderer
-
-
方法详细资料
-
addLayer
-
getModel
- 指定者:
getModel
在接口中RenderLayerParent<T extends LivingEntity,
M extends EntityModel<T>>
-
render
public void render(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) - 覆盖:
render
在类中EntityRenderer<T extends LivingEntity>
-
getRenderType
@Nullable protected RenderType getRenderType(T pLivingEntity, boolean pBodyVisible, boolean pTranslucent, boolean pGlowing) -
getOverlayCoords
-
isBodyVisible
-
sleepDirectionToRotation
-
isShaking
-
setupRotations
-
getAttackAnim
-
getBob
-
getFlipDegrees
-
getWhiteOverlayProgress
-
scale
-
shouldShowName
- 覆盖:
shouldShowName
在类中EntityRenderer<T extends LivingEntity>
-
isEntityUpsideDown
-