Package net.minecraft.data.models
Class ItemModelGenerators
java.lang.Object
net.minecraft.data.models.ItemModelGenerators
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final List
<ItemModelGenerators.TrimModelData> private final BiConsumer
<ResourceLocation, Supplier<com.google.gson.JsonElement>> static final ResourceLocation
-
Constructor Summary
ConstructorDescriptionItemModelGenerators
(BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125082_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
generateArmorTrims
(ArmorItem p_267151_) private com.google.gson.JsonObject
generateBaseArmorTrimTemplate
(ResourceLocation p_266939_, Map<TextureSlot, ResourceLocation> p_267324_, Holder<ArmorMaterial> p_323559_) private void
generateClockItem
(Item p_236324_) private void
generateCompassItem
(Item p_236322_) private void
generateFlatItem
(Item p_125092_, String p_125093_, ModelTemplate p_125094_) private void
generateFlatItem
(Item p_125089_, ModelTemplate p_125090_) private void
generateFlatItem
(Item p_125085_, Item p_125086_, ModelTemplate p_125087_) private void
generateItemWithOverlay
(Item p_330987_) private void
generateLayeredItem
(ResourceLocation p_267272_, ResourceLocation p_266738_, ResourceLocation p_267328_) private void
generateLayeredItem
(ResourceLocation p_268353_, ResourceLocation p_268162_, ResourceLocation p_268173_, ResourceLocation p_268312_) private ResourceLocation
getItemModelForTrimMaterial
(ResourceLocation p_266817_, String p_267030_) void
run()
-
Field Details
-
TRIM_TYPE_PREDICATE_ID
-
GENERATED_TRIM_MODELS
-
output
-
-
Constructor Details
-
ItemModelGenerators
public ItemModelGenerators(BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125082_)
-
-
Method Details
-
generateFlatItem
-
generateFlatItem
-
generateFlatItem
-
generateItemWithOverlay
-
generateCompassItem
-
generateClockItem
-
generateLayeredItem
private void generateLayeredItem(ResourceLocation p_267272_, ResourceLocation p_266738_, ResourceLocation p_267328_) -
generateLayeredItem
private void generateLayeredItem(ResourceLocation p_268353_, ResourceLocation p_268162_, ResourceLocation p_268173_, ResourceLocation p_268312_) -
getItemModelForTrimMaterial
-
generateBaseArmorTrimTemplate
private com.google.gson.JsonObject generateBaseArmorTrimTemplate(ResourceLocation p_266939_, Map<TextureSlot, ResourceLocation> p_267324_, Holder<ArmorMaterial> p_323559_) -
generateArmorTrims
-
run
public void run()
-