public class FabricItemSettings
extends net.minecraft.item.Item.Settings
To use it, simply replace new Item.Settings()
with
new FabricItemSettings()
.
Constructor and Description |
---|
FabricItemSettings() |
Modifier and Type | Method and Description |
---|---|
FabricItemSettings |
customDamage(CustomDamageHandler handler)
Sets the custom damage handler of the item.
|
FabricItemSettings |
equipmentSlot(EquipmentSlotProvider equipmentSlotProvider)
Sets the equipment slot provider of the item.
|
FabricItemSettings |
fireproof() |
FabricItemSettings |
food(net.minecraft.item.FoodComponent foodComponent) |
FabricItemSettings |
group(net.minecraft.item.ItemGroup group) |
FabricItemSettings |
maxCount(int maxCount) |
FabricItemSettings |
maxDamage(int maxDamage) |
FabricItemSettings |
maxDamageIfAbsent(int maxDamage) |
FabricItemSettings |
rarity(net.minecraft.util.Rarity rarity) |
FabricItemSettings |
recipeRemainder(net.minecraft.item.Item recipeRemainder) |
public FabricItemSettings equipmentSlot(EquipmentSlotProvider equipmentSlotProvider)
equipmentSlotProvider
- the equipment slot providerpublic FabricItemSettings customDamage(CustomDamageHandler handler)
ItemStack.isDamageable()
returns true.CustomDamageHandler
public FabricItemSettings food(net.minecraft.item.FoodComponent foodComponent)
food
in class net.minecraft.item.Item.Settings
public FabricItemSettings maxCount(int maxCount)
maxCount
in class net.minecraft.item.Item.Settings
public FabricItemSettings maxDamageIfAbsent(int maxDamage)
maxDamageIfAbsent
in class net.minecraft.item.Item.Settings
public FabricItemSettings maxDamage(int maxDamage)
maxDamage
in class net.minecraft.item.Item.Settings
public FabricItemSettings recipeRemainder(net.minecraft.item.Item recipeRemainder)
recipeRemainder
in class net.minecraft.item.Item.Settings
public FabricItemSettings group(net.minecraft.item.ItemGroup group)
group
in class net.minecraft.item.Item.Settings
public FabricItemSettings rarity(net.minecraft.util.Rarity rarity)
rarity
in class net.minecraft.item.Item.Settings
public FabricItemSettings fireproof()
fireproof
in class net.minecraft.item.Item.Settings