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) @Nullable Itemprivate DependantName<Item, String> private @Nullable ResourceKey<Item> private static final DependantName<Item, String> private final DependantName<Item, Identifier> (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, Identifier 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) nautilusArmor(ArmorMaterial material) 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) spawnEgg(EntityType<?> entityType) spear(ToolMaterial material, float swingDuration, float damageMultiplier, float delay, float dismountMaxDuration, float dismountMinSpeed, float knockbackMaxDuration, float knockbackMinSpeed, float damageMaxDuration, float damageMinSpeed) 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
@Nullable Item 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
-
spear
public Item.Properties spear(ToolMaterial material, float swingDuration, float damageMultiplier, float delay, float dismountMaxDuration, float dismountMinSpeed, float knockbackMaxDuration, float knockbackMinSpeed, float damageMaxDuration, float damageMinSpeed) -
spawnEgg
-
humanoidArmor
-
wolfArmor
-
horseArmor
-
nautilusArmor
-
trimMaterial
-
requiredFeatures
-
setId
-
overrideDescription
-
useBlockDescriptionPrefix
-
useItemDescriptionPrefix
-
effectiveDescriptionId
-
effectiveModel
-
component
-
attributes
-
buildAndValidateComponents
-
validateComponents
-