Class VillagerProfessionLayer<T extends LivingEntity & VillagerDataHolder,M extends EntityModel<T> & VillagerHeadModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.VillagerProfessionLayer<T,M>
public class VillagerProfessionLayer<T extends LivingEntity & VillagerDataHolder,M extends EntityModel<T> & VillagerHeadModel>
extends RenderLayer<T,M>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation>
private final String
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerProfession,
VillagerMetaDataSection.Hat> private final ResourceManager
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerType,
VillagerMetaDataSection.Hat> -
Constructor Summary
ConstructorDescriptionVillagerProfessionLayer
(RenderLayerParent<T, M> p_174550_, ResourceManager p_174551_, String p_174552_) -
Method Summary
Modifier and TypeMethodDescriptiongetHatData
(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K, VillagerMetaDataSection.Hat> p_117659_, String p_117660_, DefaultedRegistry<K> p_117661_, K p_117662_) private ResourceLocation
getResourceLocation
(String p_117669_, ResourceLocation p_117670_) void
render
(PoseStack p_117646_, MultiBufferSource p_117647_, int p_117648_, T p_117649_, float p_117650_, float p_117651_, float p_117652_, float p_117653_, float p_117654_, float p_117655_) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
LEVEL_LOCATIONS
-
typeHatCache
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerType,VillagerMetaDataSection.Hat> typeHatCache -
professionHatCache
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerProfession,VillagerMetaDataSection.Hat> professionHatCache -
resourceManager
-
path
-
-
Constructor Details
-
VillagerProfessionLayer
public VillagerProfessionLayer(RenderLayerParent<T, M> p_174550_, ResourceManager p_174551_, String p_174552_)
-
-
Method Details
-
render
public void render(PoseStack p_117646_, MultiBufferSource p_117647_, int p_117648_, T p_117649_, float p_117650_, float p_117651_, float p_117652_, float p_117653_, float p_117654_, float p_117655_) - Specified by:
render
in classRenderLayer<T extends LivingEntity & VillagerDataHolder,
M extends EntityModel<T> & VillagerHeadModel>
-
getResourceLocation
-
getHatData
public <K> VillagerMetaDataSection.Hat getHatData(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K, VillagerMetaDataSection.Hat> p_117659_, String p_117660_, DefaultedRegistry<K> p_117661_, K p_117662_)
-