Package net.minecraft.item
Class Item.Properties
- java.lang.Object
-
- net.minecraft.item.Item.Properties
-
- Enclosing class:
- Item
public static class Item.Properties extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canRepair
private ItemGroup
category
private Item
craftingRemainingItem
private Food
foodProperties
private boolean
isFireResistant
private java.util.function.Supplier<java.util.concurrent.Callable<ItemStackTileEntityRenderer>>
ister
private int
maxDamage
private int
maxStackSize
private Rarity
rarity
private java.util.Map<ToolType,java.lang.Integer>
toolClasses
-
Constructor Summary
Constructors Constructor Description Properties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item.Properties
addToolType(ToolType type, int level)
Item.Properties
craftRemainder(Item p_200919_1_)
Item.Properties
defaultDurability(int p_200915_1_)
Item.Properties
durability(int p_200918_1_)
Item.Properties
fireResistant()
Item.Properties
food(Food p_221540_1_)
Item.Properties
rarity(Rarity p_208103_1_)
Item.Properties
setISTER(java.util.function.Supplier<java.util.concurrent.Callable<ItemStackTileEntityRenderer>> ister)
Item.Properties
setNoRepair()
Item.Properties
stacksTo(int p_200917_1_)
Item.Properties
tab(ItemGroup p_200916_1_)
-
-
-
Field Detail
-
maxStackSize
private int maxStackSize
-
maxDamage
private int maxDamage
-
craftingRemainingItem
private Item craftingRemainingItem
-
category
private ItemGroup category
-
rarity
private Rarity rarity
-
foodProperties
private Food foodProperties
-
isFireResistant
private boolean isFireResistant
-
canRepair
private boolean canRepair
-
toolClasses
private java.util.Map<ToolType,java.lang.Integer> toolClasses
-
ister
private java.util.function.Supplier<java.util.concurrent.Callable<ItemStackTileEntityRenderer>> ister
-
-
Method Detail
-
food
public Item.Properties food(Food p_221540_1_)
-
stacksTo
public Item.Properties stacksTo(int p_200917_1_)
-
defaultDurability
public Item.Properties defaultDurability(int p_200915_1_)
-
durability
public Item.Properties durability(int p_200918_1_)
-
craftRemainder
public Item.Properties craftRemainder(Item p_200919_1_)
-
tab
public Item.Properties tab(ItemGroup p_200916_1_)
-
rarity
public Item.Properties rarity(Rarity p_208103_1_)
-
fireResistant
public Item.Properties fireResistant()
-
setNoRepair
public Item.Properties setNoRepair()
-
addToolType
public Item.Properties addToolType(ToolType type, int level)
-
setISTER
public Item.Properties setISTER(java.util.function.Supplier<java.util.concurrent.Callable<ItemStackTileEntityRenderer>> ister)
-
-