Class ModelTemplate
java.lang.Object
net.minecraft.client.data.models.model.ModelTemplate
- Direct Known Subclasses:
ExtendedModelTemplate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelTemplate
(Optional<ResourceLocation> pModel, Optional<String> pSuffix, TextureSlot... pRequiredSlots) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ResourceLocation pModelLocation, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) create
(Item pItem, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) create
(Block pBlock, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) com.google.gson.JsonObject
createBaseTemplate
(ResourceLocation p_388380_, Map<TextureSlot, ResourceLocation> map) private Map
<TextureSlot, ResourceLocation> createMap
(TextureMapping pTextureMapping) createWithOverride
(Block pBlock, String pSuffix, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) createWithSuffix
(Block pBlock, String pSuffix, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) extend()
getDefaultModelLocation
(Block pBlock)
-
Field Details
-
model
-
requiredSlots
-
suffix
-
-
Constructor Details
-
ModelTemplate
public ModelTemplate(Optional<ResourceLocation> pModel, Optional<String> pSuffix, TextureSlot... pRequiredSlots)
-
-
Method Details
-
getDefaultModelLocation
-
create
public ResourceLocation create(Block pBlock, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) -
createWithSuffix
public ResourceLocation createWithSuffix(Block pBlock, String pSuffix, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) -
createWithOverride
public ResourceLocation createWithOverride(Block pBlock, String pSuffix, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) -
create
public ResourceLocation create(Item pItem, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) -
create
public ResourceLocation create(ResourceLocation pModelLocation, TextureMapping pTextureMapping, BiConsumer<ResourceLocation, ModelInstance> pOutput) -
createBaseTemplate
public com.google.gson.JsonObject createBaseTemplate(ResourceLocation p_388380_, Map<TextureSlot, ResourceLocation> map) -
createMap
-
extend
-