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 pAttributes) axe(ToolMaterial pMaterial, float pAttackDamage, float pAttackSpeed) (package private) DataComponentMapbuildAndValidateComponents(Component pItemName, ResourceLocation 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) 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) 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
-
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
-
spawnEgg
-
humanoidArmor
-
wolfArmor
-
horseArmor
-
trimMaterial
-
requiredFeatures
-
setId
-
overrideDescription
-
useBlockDescriptionPrefix
-
useItemDescriptionPrefix
-
effectiveDescriptionId
-
effectiveModel
-
component
-
attributes
-
buildAndValidateComponents
-
validateComponents
-