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 float
private float
private float
private Map<SkullBlock.Type,SkullModelBase>
-
Constructor Summary
ConstructorDescriptionCustomHeadLayer(RenderLayerParent<T,M> p_174475_, EntityModelSet p_174476_)
CustomHeadLayer(RenderLayerParent<T,M> p_174478_, EntityModelSet p_174479_, float p_174480_, float p_174481_, float p_174482_)
-
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
-
-
Constructor Details
-
CustomHeadLayer
-
CustomHeadLayer
public CustomHeadLayer(RenderLayerParent<T,M> p_174478_, EntityModelSet p_174479_, float p_174480_, float p_174481_, float p_174482_)
-
-
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
-