Package appeng.api.crafting
Class EncodedPatternItemBuilder<T extends IPatternDetails>
java.lang.Object
appeng.api.crafting.EncodedPatternItemBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item
build()
Builds the pattern item and returns it.When a pattern can no longer be decoded successfully, a custom strategy can be used to still provide the player with some useful information about the invalid pattern (such as: what was it crafting? with which ingredients?)itemProperties
(net.minecraft.world.item.Item.Properties properties) Overrides the item properties of the generated item.
-
Method Details
-
invalidPatternTooltip
When a pattern can no longer be decoded successfully, a custom strategy can be used to still provide the player with some useful information about the invalid pattern (such as: what was it crafting? with which ingredients?) -
itemProperties
public EncodedPatternItemBuilder<T> itemProperties(net.minecraft.world.item.Item.Properties properties) Overrides the item properties of the generated item. The default properties simply make them unstackable. -
build
public net.minecraft.world.item.Item build()Builds the pattern item and returns it. Register this item within your mod, and ensure:- >You need to provide an item model.
- >You need to provide an item name translation.
-