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 pAttributes) axe(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) (package private) DataComponentMapbuildAndValidateComponents(Component pItemName, Identifier pItemModel) <T> Item.Propertiescomponent(DataComponentType<T> pComponent, T pValue) craftRemainder(Item pCraftingRemainingItem) durability(int pMaxDamage) protected Stringenchantable(int pEnchantmentValue) equippable(EquipmentSlot pSlot) food(FoodProperties pFood) food(FoodProperties pFood, Consumable pConsumable) hoe(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) horseArmor(ArmorMaterial pMaterial) humanoidArmor(ArmorMaterial pMaterial, ArmorType pType) jukeboxPlayable(ResourceKey<JukeboxSong> pSong) nautilusArmor(ArmorMaterial pMaterial) overrideDescription(String pDescription) pickaxe(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) repairable(TagKey<Item> pRepairItems) repairable(Item pRepairItem) requiredFeatures(FeatureFlag... pRequiredFeatures) setId(ResourceKey<Item> pId) shovel(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) spawnEgg(EntityType<?> pEntityType) spear(ToolMaterial pMaterial, float pSwingDuration, float pDamageMultiplier, float pDelay, float pDismountMaxDuration, float pDismountMinSpeed, float pKnockbackMaxDuration, float pKnockbackMinSpeed, float pDamageMaxDuration, float pDamageMinSpeed) stacksTo(int pMaxStackSize) sword(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) tool(ToolMaterial pMaterial, TagKey<Block> pMineableBlocks, float pAttackDamage, float pAttackSpeed, float pDisableBlockingForSeconds) trimMaterial(ResourceKey<TrimMaterial> pTrimMaterial) useCooldown(float pUseCooldown) usingConvertsTo(Item pUsingConvertsTo) static DataComponentMapvalidateComponents(DataComponentMap datacomponentmap) wolfArmor(ArmorMaterial pMaterial) 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 pMaterial, TagKey<Block> pMineableBlocks, float pAttackDamage, float pAttackSpeed, float pDisableBlockingForSeconds) -
pickaxe
-
axe
-
hoe
-
shovel
-
sword
-
spear
public Item.Properties spear(ToolMaterial pMaterial, float pSwingDuration, float pDamageMultiplier, float pDelay, float pDismountMaxDuration, float pDismountMinSpeed, float pKnockbackMaxDuration, float pKnockbackMinSpeed, float pDamageMaxDuration, float pDamageMinSpeed) -
spawnEgg
-
humanoidArmor
-
wolfArmor
-
horseArmor
-
nautilusArmor
-
trimMaterial
-
requiredFeatures
-
setId
-
overrideDescription
-
useBlockDescriptionPrefix
-
useItemDescriptionPrefix
-
effectiveDescriptionId
-
effectiveModel
-
component
-
attributes
-
buildAndValidateComponents
-
validateComponents
-