Class VillagerLevelPendantLayer<T extends LivingEntity & IVillagerDataHolder,M extends EntityModel<T> & IHeadToggle>
java.lang.Object
net.minecraft.client.renderer.entity.layers.LayerRenderer<T,M>
net.minecraft.client.renderer.entity.layers.VillagerLevelPendantLayer<T,M>
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
public class VillagerLevelPendantLayer<T extends LivingEntity & IVillagerDataHolder,M extends EntityModel<T> & IHeadToggle>
extends LayerRenderer<T,M>
implements IResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
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.HatType> private final IReloadableResourceManager
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerType,
VillagerMetadataSection.HatType> -
Constructor Summary
ConstructorDescriptionVillagerLevelPendantLayer
(IEntityRenderer<T, M> p_i50955_1_, IReloadableResourceManager p_i50955_2_, String p_i50955_3_) -
Method Summary
Modifier and TypeMethodDescriptiongetHatData
(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K, VillagerMetadataSection.HatType> p_215350_1_, String p_215350_2_, DefaultedRegistry<K> p_215350_3_, K p_215350_4_) private ResourceLocation
getResourceLocation
(String p_215351_1_, ResourceLocation p_215351_2_) void
onResourceManagerReload
(IResourceManager p_195410_1_) void
render
(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) Methods inherited from class net.minecraft.client.renderer.entity.layers.LayerRenderer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
getResourceType, reload
-
Field Details
-
LEVEL_LOCATIONS
-
typeHatCache
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerType,VillagerMetadataSection.HatType> typeHatCache -
professionHatCache
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerProfession,VillagerMetadataSection.HatType> professionHatCache -
resourceManager
-
path
-
-
Constructor Details
-
VillagerLevelPendantLayer
public VillagerLevelPendantLayer(IEntityRenderer<T, M> p_i50955_1_, IReloadableResourceManager p_i50955_2_, String p_i50955_3_)
-
-
Method Details
-
render
public void render(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) - Specified by:
render
in classLayerRenderer<T extends LivingEntity & IVillagerDataHolder,
M extends EntityModel<T> & IHeadToggle>
-
getResourceLocation
-
getHatData
public <K> VillagerMetadataSection.HatType getHatData(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K, VillagerMetadataSection.HatType> p_215350_1_, String p_215350_2_, DefaultedRegistry<K> p_215350_3_, K p_215350_4_) -
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-