Class CustomHeadLayer<S extends LivingEntityRenderState,M extends EntityModel<S> & HeadedModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<S,M>
net.minecraft.client.renderer.entity.layers.CustomHeadLayer<S,M>
public class CustomHeadLayer<S extends LivingEntityRenderState,M extends EntityModel<S> & HeadedModel>
extends RenderLayer<S,M>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final float
private final Function
<SkullBlock.Type, SkullModelBase> private final CustomHeadLayer.Transforms
-
Constructor Summary
ConstructorsConstructorDescriptionCustomHeadLayer
(RenderLayerParent<S, M> p_234822_, EntityModelSet p_234823_) CustomHeadLayer
(RenderLayerParent<S, M> p_234829_, EntityModelSet p_234830_, CustomHeadLayer.Transforms p_363489_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(PoseStack p_116731_, MultiBufferSource p_116732_, int p_116733_, S p_360660_, float p_116735_, float p_116736_) static void
translateToHead
(PoseStack p_174484_, CustomHeadLayer.Transforms p_361680_) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, renderColoredCutoutModel
-
Field Details
-
ITEM_SCALE
private static final float ITEM_SCALE- See Also:
-
SKULL_SCALE
private static final float SKULL_SCALE- See Also:
-
transforms
-
skullModels
-
-
Constructor Details
-
CustomHeadLayer
-
CustomHeadLayer
public CustomHeadLayer(RenderLayerParent<S, M> p_234829_, EntityModelSet p_234830_, CustomHeadLayer.Transforms p_363489_)
-
-
Method Details
-
render
public void render(PoseStack p_116731_, MultiBufferSource p_116732_, int p_116733_, S p_360660_, float p_116735_, float p_116736_) - Specified by:
render
in classRenderLayer<S extends LivingEntityRenderState,
M extends EntityModel<S> & HeadedModel>
-
translateToHead
-