Class ItemModelSmith
java.lang.Object
team.lodestar.lodestone.modules.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 TypeMethodDescriptionact(LodestoneItemModelSystem provider, Supplier<? extends net.minecraft.world.item.Item> itemSupplier) final List<ItemModelSmithResult> act(ItemModelSystemData data, Collection<Supplier<? extends net.minecraft.world.item.Item>> items) act(ItemModelSystemData data, Supplier<? extends net.minecraft.world.item.Item> itemSupplier) final List<ItemModelSmithResult> act(ItemModelSystemData data, Supplier<? extends net.minecraft.world.item.Item>... 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(LodestoneItemModelSystem 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
@SafeVarargs public final List<ItemModelSmithResult> act(ItemModelSystemData data, Supplier<? extends net.minecraft.world.item.Item>... items) -
act
public final List<ItemModelSmithResult> act(ItemModelSystemData data, Collection<Supplier<? extends net.minecraft.world.item.Item>> items) -
act
public ItemModelSmithResult act(ItemModelSystemData data, Supplier<? extends net.minecraft.world.item.Item> itemSupplier) -
act
public ItemModelSmithResult act(LodestoneItemModelSystem provider, Supplier<? extends net.minecraft.world.item.Item> itemSupplier) -
preDatagen
-
postDatagen
-