类 CustomHeadLayer<T extends LivingEntity,M extends EntityModel<T> & HeadedModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.CustomHeadLayer<T,M>
public class CustomHeadLayer<T extends LivingEntity,M extends EntityModel<T> & HeadedModel>
extends RenderLayer<T,M>
-
字段概要
字段修饰符和类型字段说明private final ItemInHandRenderer
private final float
private final float
private final float
private final Map<SkullBlock.Type,
SkullModelBase> -
构造器概要
构造器构造器说明CustomHeadLayer
(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, float pScaleX, float pScaleY, float pScaleZ, ItemInHandRenderer pItemInHandRenderer) CustomHeadLayer
(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, ItemInHandRenderer pItemInHandRenderer) -
方法概要
修饰符和类型方法说明void
render
(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) static void
translateToHead
(PoseStack pPoseStack, boolean pIsVillager) 从类继承的方法 net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
字段详细资料
-
scaleX
private final float scaleX -
scaleY
private final float scaleY -
scaleZ
private final float scaleZ -
skullModels
-
itemInHandRenderer
-
-
构造器详细资料
-
CustomHeadLayer
public CustomHeadLayer(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, ItemInHandRenderer pItemInHandRenderer) -
CustomHeadLayer
public CustomHeadLayer(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, float pScaleX, float pScaleY, float pScaleZ, ItemInHandRenderer pItemInHandRenderer)
-
-
方法详细资料
-
render
public void render(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) - 指定者:
render
在类中RenderLayer<T extends LivingEntity,
M extends EntityModel<T> & HeadedModel>
-
translateToHead
-