Package net.minecraft.data.models.model
Class ModelTemplate
java.lang.Object
net.minecraft.data.models.model.ModelTemplate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<ResourceLocation> private final Set<TextureSlot> -
Constructor Summary
ConstructorsConstructorDescriptionModelTemplate(Optional<ResourceLocation> model, Optional<String> suffix, TextureSlot... requiredSlots) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ResourceLocation modelLocation, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) create(ResourceLocation modelLocation, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput, ModelTemplate.JsonFactory factory) create(Block modelBlock, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) com.google.gson.JsonObjectcreateBaseTemplate(ResourceLocation modelLocation, Map<TextureSlot, ResourceLocation> modelGetter) private Map<TextureSlot, ResourceLocation> createMap(TextureMapping textureMapping) createWithOverride(Block modelBlock, String modelLocationSuffix, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) createWithSuffix(Block modelBlock, String modelLocationSuffix, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) getDefaultModelLocation(Block block)
-
Field Details
-
model
-
requiredSlots
-
suffix
-
-
Constructor Details
-
ModelTemplate
public ModelTemplate(Optional<ResourceLocation> model, Optional<String> suffix, TextureSlot... requiredSlots)
-
-
Method Details
-
getDefaultModelLocation
-
create
public ResourceLocation create(Block modelBlock, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) -
createWithSuffix
public ResourceLocation createWithSuffix(Block modelBlock, String modelLocationSuffix, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) -
createWithOverride
public ResourceLocation createWithOverride(Block modelBlock, String modelLocationSuffix, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) -
create
public ResourceLocation create(ResourceLocation modelLocation, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput) -
create
public ResourceLocation create(ResourceLocation modelLocation, TextureMapping textureMapping, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> modelOutput, ModelTemplate.JsonFactory factory) -
createBaseTemplate
public com.google.gson.JsonObject createBaseTemplate(ResourceLocation modelLocation, Map<TextureSlot, ResourceLocation> modelGetter) -
createMap
-