Package net.minecraft.world.item
Class Item.Properties
java.lang.Object
net.minecraft.world.item.Item.Properties
- All Implemented Interfaces:
IItemPropertiesExtensions
- Enclosing class:
Item
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private 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_331533_) (package private) DataComponentMap
private DataComponentMap
<T> Item.Properties
component
(DataComponentType<T> p_330871_, T p_330323_) craftRemainder
(Item p_41496_) durability
(int p_41504_) food
(FoodProperties p_41490_) requiredFeatures
(FeatureFlag... p_250948_) stacksTo
(int p_41488_) static DataComponentMap
validateComponents
(DataComponentMap datacomponentmap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemPropertiesExtensions
component
-
Field Details
-
COMPONENT_INTERNER
-
components
-
craftingRemainingItem
-
requiredFeatures
FeatureFlagSet requiredFeatures -
canRepair
private boolean canRepair
-
-
Constructor Details
-
Properties
public Properties()
-
-
Method Details
-
food
-
stacksTo
-
durability
-
craftRemainder
-
rarity
-
fireResistant
-
setNoRepair
-
requiredFeatures
-
component
-
attributes
-
buildAndValidateComponents
DataComponentMap buildAndValidateComponents() -
validateComponents
-
buildComponents
-