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
Modifier and TypeFieldDescriptionprivate final ItemInHandRenderer
private final float
private final float
private final float
private final Map
<SkullBlock.Type, SkullModelBase> -
Constructor Summary
ConstructorDescriptionCustomHeadLayer
(RenderLayerParent<T, M> p_234822_, EntityModelSet p_234823_, float p_234824_, float p_234825_, float p_234826_, ItemInHandRenderer p_234827_) CustomHeadLayer
(RenderLayerParent<T, M> p_234829_, EntityModelSet p_234830_, ItemInHandRenderer p_234831_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(PoseStack p_116731_, MultiBufferSource p_116732_, int p_116733_, T p_116734_, float p_116735_, float p_116736_, float p_116737_, float p_116738_, float p_116739_, float p_116740_) static void
translateToHead
(PoseStack p_174484_, boolean p_174485_) 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> p_234829_, EntityModelSet p_234830_, ItemInHandRenderer p_234831_) -
CustomHeadLayer
public CustomHeadLayer(RenderLayerParent<T, M> p_234822_, EntityModelSet p_234823_, float p_234824_, float p_234825_, float p_234826_, ItemInHandRenderer p_234827_)
-
-
Method Details
-
render
public void render(PoseStack p_116731_, MultiBufferSource p_116732_, int p_116733_, T p_116734_, float p_116735_, float p_116736_, float p_116737_, float p_116738_, float p_116739_, float p_116740_) - Specified by:
render
in classRenderLayer<T extends LivingEntity,
M extends EntityModel<T> & HeadedModel>
-
translateToHead
-