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