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
FieldsModifier and TypeFieldDescriptionprivate static final DependantName<Item, String> private booleanprivate final DataComponentMap.Builder(package private) Itemprivate DependantName<Item, String> private ResourceKey<Item> private static final DependantName<Item, String> private DependantName<Item, ResourceLocation> (package private) FeatureFlagSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(ItemAttributeModifiers attributes) axe(ToolMaterial material, float attackDamage, float attackSpeed) (package private) DataComponentMapbuildAndValidateComponents(Component itemName, ResourceLocation itemModel) <T> Item.Propertiescomponent(DataComponentType<T> component, T value) craftRemainder(Item craftingRemainingItem) durability(int maxDamage) protected Stringenchantable(int enchantmentValue) equippable(EquipmentSlot slot) food(FoodProperties food) food(FoodProperties food, Consumable consumable) hoe(ToolMaterial material, float attackDamage, float attackSpeed) horseArmor(ArmorMaterial material) humanoidArmor(ArmorMaterial material, ArmorType type) overrideDescription(String description) pickaxe(ToolMaterial material, float attackDamage, float attackSpeed) repairable(TagKey<Item> repairItems) repairable(Item repairItem) requiredFeatures(FeatureFlag... requiredFeatures) setId(ResourceKey<Item> id) shovel(ToolMaterial material, float attackDamage, float attackSpeed) stacksTo(int maxStackSize) sword(ToolMaterial material, float attackDamage, float attackSpeed) tool(ToolMaterial material, TagKey<Block> mineableBlocks, float attackDamage, float attackSpeed, float disableBlockingForSeconds) trimMaterial(ResourceKey<TrimMaterial> trimMaterial) useCooldown(float useCooldown) usingConvertsTo(Item usingConvertsTo) static DataComponentMapvalidateComponents(DataComponentMap datacomponentmap) wolfArmor(ArmorMaterial material) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemPropertiesExtensions
component
-
Field Details
-
BLOCK_DESCRIPTION_ID
-
ITEM_DESCRIPTION_ID
-
components
-
craftingRemainingItem
-
requiredFeatures
FeatureFlagSet requiredFeatures -
id
-
descriptionId
-
model
-
canCombineRepair
private boolean canCombineRepair
-
-
Constructor Details
-
Properties
public Properties()
-
-
Method Details
-
setNoCombineRepair
-
food
-
food
-
usingConvertsTo
-
useCooldown
-
stacksTo
-
durability
-
craftRemainder
-
rarity
-
fireResistant
-
jukeboxPlayable
-
enchantable
-
repairable
-
repairable
-
equippable
-
equippableUnswappable
-
tool
public Item.Properties tool(ToolMaterial material, TagKey<Block> mineableBlocks, float attackDamage, float attackSpeed, float disableBlockingForSeconds) -
pickaxe
-
axe
-
hoe
-
shovel
-
sword
-
humanoidArmor
-
wolfArmor
-
horseArmor
-
trimMaterial
-
requiredFeatures
-
setId
-
overrideDescription
-
useBlockDescriptionPrefix
-
useItemDescriptionPrefix
-
effectiveDescriptionId
-
effectiveModel
-
component
-
attributes
-
buildAndValidateComponents
-
validateComponents
-