Package net.fabricmc.fabric.api.item.v1
Class FabricItemSettings
java.lang.Object
net.minecraft.item.Item.Settings
net.fabricmc.fabric.api.item.v1.FabricItemSettings
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomDamage(CustomDamageHandler handler) Deprecated.equipmentSlot(EquipmentSlotProvider equipmentSlotProvider) Deprecated.Deprecated.food(FoodComponent foodComponent) Deprecated.maxCount(int maxCount) Deprecated.maxDamage(int maxDamage) Deprecated.maxDamageIfAbsent(int maxDamage) Deprecated.Deprecated.recipeRemainder(Item recipeRemainder) Deprecated.requires(FeatureFlag... features) Deprecated.
-
Constructor Details
-
FabricItemSettings
public FabricItemSettings()Deprecated.
-
-
Method Details
-
equipmentSlot
Deprecated.Sets the equipment slot provider of the item.- Parameters:
equipmentSlotProvider- the equipment slot provider- Returns:
- this builder
-
customDamage
Deprecated.Sets the custom damage handler of the item. Note that this is only called on an ItemStack ifItemStack.isDamageable()returns true.- See Also:
-
food
Deprecated.- Overrides:
foodin classItem.Settings
-
maxCount
Deprecated.- Overrides:
maxCountin classItem.Settings
-
maxDamageIfAbsent
Deprecated.- Overrides:
maxDamageIfAbsentin classItem.Settings
-
maxDamage
Deprecated.- Overrides:
maxDamagein classItem.Settings
-
recipeRemainder
Deprecated.- Overrides:
recipeRemainderin classItem.Settings
-
rarity
Deprecated.- Overrides:
rarityin classItem.Settings
-
fireproof
Deprecated.- Overrides:
fireproofin classItem.Settings
-
requires
Deprecated.- Overrides:
requiresin classItem.Settings
-
Item.Settings