Class 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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemInHandRenderer
private final float
private final float
private final float
private final Map
<SkullBlock.Type, SkullModelBase> -
Constructor Summary
ConstructorsConstructorDescriptionCustomHeadLayer
(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, float pScaleX, float pScaleY, float pScaleZ, ItemInHandRenderer pItemInHandRenderer) CustomHeadLayer
(RenderLayerParent<T, M> pRenderer, EntityModelSet pModelSet, ItemInHandRenderer pItemInHandRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(PoseStack pPoseStack, 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) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
scaleX
private final float scaleX -
scaleY
private final float scaleY -
scaleZ
private final float scaleZ -
skullModels
-
itemInHandRenderer
-
-
Constructor Details
-
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)
-
-
Method Details
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) - Specified by:
render
in classRenderLayer<T extends LivingEntity,
M extends EntityModel<T> & HeadedModel>
-
translateToHead
-