Package net.minecraft.data.models.model
Class ModelTemplate
java.lang.Object
net.minecraft.data.models.model.ModelTemplate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional
<ResourceLocation> private final Set
<TextureSlot> -
Constructor Summary
ConstructorDescriptionModelTemplate
(Optional<ResourceLocation> p_125589_, Optional<String> p_125590_, TextureSlot... p_125591_) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ResourceLocation p_125613_, TextureMapping p_125614_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125615_) create
(ResourceLocation p_266990_, TextureMapping p_267329_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_266768_, ModelTemplate.JsonFactory p_266906_) create
(Block p_125593_, TextureMapping p_125594_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125595_) com.google.gson.JsonObject
createBaseTemplate
(ResourceLocation p_266830_, Map<TextureSlot, ResourceLocation> p_266912_) private Map
<TextureSlot, ResourceLocation> createMap
(TextureMapping p_125609_) createWithOverride
(Block p_125617_, String p_125618_, TextureMapping p_125619_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125620_) createWithSuffix
(Block p_125597_, String p_125598_, TextureMapping p_125599_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125600_) getDefaultModelLocation
(Block p_311971_)
-
Field Details
-
model
-
requiredSlots
-
suffix
-
-
Constructor Details
-
ModelTemplate
public ModelTemplate(Optional<ResourceLocation> p_125589_, Optional<String> p_125590_, TextureSlot... p_125591_)
-
-
Method Details
-
getDefaultModelLocation
-
create
public ResourceLocation create(Block p_125593_, TextureMapping p_125594_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125595_) -
createWithSuffix
public ResourceLocation createWithSuffix(Block p_125597_, String p_125598_, TextureMapping p_125599_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125600_) -
createWithOverride
public ResourceLocation createWithOverride(Block p_125617_, String p_125618_, TextureMapping p_125619_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125620_) -
create
public ResourceLocation create(ResourceLocation p_125613_, TextureMapping p_125614_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_125615_) -
create
public ResourceLocation create(ResourceLocation p_266990_, TextureMapping p_267329_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_266768_, ModelTemplate.JsonFactory p_266906_) -
createBaseTemplate
public com.google.gson.JsonObject createBaseTemplate(ResourceLocation p_266830_, Map<TextureSlot, ResourceLocation> p_266912_) -
createMap
-