Class ItemModelSmith
java.lang.Object
com.mosaicmodding.tessera.datagen.smith.itemmodel.ItemModelSmith
- Direct Known Subclasses:
ConfiguredItemModelSmith,EmptyItemModelSmith
A class responsible for generating item models when used with an ItemModelProvider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ItemModelSmithResultact(TesseraItemModelSystem provider, net.minecraft.world.item.Item item) act(ItemModelSystemData data, DatagenItemQuery queried) act(ItemModelSystemData data, Class<? extends net.minecraft.world.item.Item> itemClass) act(ItemModelSystemData data, Function<ItemModelSystemData, DatagenItemQuery> queried) final Optional<ItemModelSmithResult> act(ItemModelSystemData data, net.minecraft.world.item.Item item) act(ItemModelSystemData data, net.minecraft.world.level.ItemLike... items) addModelParentAffix(String affix) addModelPathAffix(String affix) addTextureNameAffix(String affix) protected ConfiguredItemModelSmithmodifyModelParent(UnaryOperator<String> modelParentModifier) modifyModelPath(UnaryOperator<String> modelPathModifier) modifyResult(Consumer<ItemModelSmithResult> modifier) modifyTexturePath(UnaryOperator<String> textureNameModifier) static ItemModelSmithparentedItem(net.minecraft.resources.ResourceLocation parent, boolean useTexture) protected voidpostDatagen(ItemModelSmithResult result) protected voidpreDatagen(TesseraItemModelSystem provider, net.minecraft.world.item.Item item)
-
Constructor Details
-
ItemModelSmith
-
-
Method Details
-
parentedItem
public static ItemModelSmith parentedItem(net.minecraft.resources.ResourceLocation parent, boolean useTexture) -
modifyResult
-
addModelParentAffix
-
modifyModelParent
-
addTextureNameAffix
-
modifyTexturePath
-
addModelPathAffix
-
modifyModelPath
-
configure
-
act
public List<ItemModelSmithResult> act(ItemModelSystemData data, net.minecraft.world.level.ItemLike... items) -
act
public List<ItemModelSmithResult> act(ItemModelSystemData data, Class<? extends net.minecraft.world.item.Item> itemClass) -
act
public List<ItemModelSmithResult> act(ItemModelSystemData data, Function<ItemModelSystemData, DatagenItemQuery> queried) -
act
-
act
public final Optional<ItemModelSmithResult> act(ItemModelSystemData data, net.minecraft.world.item.Item item) -
act
public final ItemModelSmithResult act(TesseraItemModelSystem provider, net.minecraft.world.item.Item item) -
preDatagen
-
postDatagen
-