FabricItemSettings

public class FabricItemSettings extends Item.Settings

Fabric's version of Item.Settings. Adds additional methods and hooks not found in the original class.

To use it, simply replace {@code new Item.Settings()} with {@code new FabricItemSettings()}.

Functions

customDamage
Link copied to clipboard
FabricItemSettings customDamage(CustomDamageHandler handler)
Sets the custom damage handler of the item.
equipmentSlot
Link copied to clipboard
FabricItemSettings equipmentSlot(EquipmentSlotProvider equipmentSlotProvider)
Sets the equipment slot provider of the item.
fireproof
Link copied to clipboard
FabricItemSettings fireproof()
Item.Settings fireproof()
food
Link copied to clipboard
FabricItemSettings food(FoodComponent foodComponent)
Item.Settings food(FoodComponent foodComponent)
group
Link copied to clipboard
FabricItemSettings group(ItemGroup group)
Item.Settings group(ItemGroup group)
maxCount
Link copied to clipboard
FabricItemSettings maxCount(int maxCount)
Item.Settings maxCount(int maxCount)
maxDamage
Link copied to clipboard
FabricItemSettings maxDamage(int maxDamage)
Item.Settings maxDamage(int maxDamage)
maxDamageIfAbsent
Link copied to clipboard
FabricItemSettings maxDamageIfAbsent(int maxDamage)
Item.Settings maxDamageIfAbsent(int maxDamage)
rarity
Link copied to clipboard
FabricItemSettings rarity(Rarity rarity)
Item.Settings rarity(Rarity rarity)
recipeRemainder
Link copied to clipboard
FabricItemSettings recipeRemainder(Item recipeRemainder)
Item.Settings recipeRemainder(Item recipeRemainder)

Sources

jvm source
Link copied to clipboard