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:
food
in classItem.Settings
-
maxCount
Deprecated.- Overrides:
maxCount
in classItem.Settings
-
maxDamageIfAbsent
Deprecated.- Overrides:
maxDamageIfAbsent
in classItem.Settings
-
maxDamage
Deprecated.- Overrides:
maxDamage
in classItem.Settings
-
recipeRemainder
Deprecated.- Overrides:
recipeRemainder
in classItem.Settings
-
rarity
Deprecated.- Overrides:
rarity
in classItem.Settings
-
fireproof
Deprecated.- Overrides:
fireproof
in classItem.Settings
-
requires
Deprecated.- Overrides:
requires
in classItem.Settings
-
Item.Settings