Package net.minecraft.world.item
Class Item.Properties
java.lang.Object
net.minecraft.world.item.Item.Properties
- Enclosing class:
Item
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.google.common.collect.Interner
<DataComponentMap> private DataComponentMap.Builder
(package private) Item
(package private) FeatureFlagSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(ItemAttributeModifiers p_330293_) (package private) DataComponentMap
private DataComponentMap
<T> Item.Properties
component
(DataComponentType<T> p_333852_, T p_330859_) craftRemainder
(Item p_41496_) durability
(int p_41504_) food
(FoodProperties p_41490_) requiredFeatures
(FeatureFlag... p_250948_) stacksTo
(int p_41488_)
-
Field Details
-
COMPONENT_INTERNER
-
components
-
craftingRemainingItem
-
requiredFeatures
FeatureFlagSet requiredFeatures
-
-
Constructor Details
-
Properties
public Properties()
-
-
Method Details
-
food
-
stacksTo
-
durability
-
craftRemainder
-
rarity
-
fireResistant
-
requiredFeatures
-
component
-
attributes
-
buildAndValidateComponents
DataComponentMap buildAndValidateComponents() -
buildComponents
-