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
Fields Modifier and Type Field Description private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation>
LEVEL_LOCATIONS
private java.lang.String
path
private it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerProfession,VillagerMetadataSection.HatType>
professionHatCache
private IReloadableResourceManager
resourceManager
private it.unimi.dsi.fastutil.objects.Object2ObjectMap<VillagerType,VillagerMetadataSection.HatType>
typeHatCache
-
Constructor Summary
Constructors Constructor Description VillagerLevelPendantLayer(IEntityRenderer<T,M> p_i50955_1_, IReloadableResourceManager p_i50955_2_, java.lang.String p_i50955_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K> VillagerMetadataSection.HatType
getHatData(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K,VillagerMetadataSection.HatType> p_215350_1_, java.lang.String p_215350_2_, DefaultedRegistry<K> p_215350_3_, K p_215350_4_)
private ResourceLocation
getResourceLocation(java.lang.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 Detail
-
LEVEL_LOCATIONS
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> 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
private final IReloadableResourceManager resourceManager
-
path
private final java.lang.String path
-
-
Constructor Detail
-
VillagerLevelPendantLayer
public VillagerLevelPendantLayer(IEntityRenderer<T,M> p_i50955_1_, IReloadableResourceManager p_i50955_2_, java.lang.String p_i50955_3_)
-
-
Method Detail
-
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
private ResourceLocation getResourceLocation(java.lang.String p_215351_1_, ResourceLocation p_215351_2_)
-
getHatData
public <K> VillagerMetadataSection.HatType getHatData(it.unimi.dsi.fastutil.objects.Object2ObjectMap<K,VillagerMetadataSection.HatType> p_215350_1_, java.lang.String p_215350_2_, DefaultedRegistry<K> p_215350_3_, K p_215350_4_)
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
-