net.minecraft.item

public class Item$Settings

net.minecraft.world.item.Item$Properties
net.minecraft.class_1792$class_1793
net.minecraft.item.Item$Settings

Field summary

Modifier and TypeField
private static final RegistryKeyedValue<Item, String>
BLOCK_DESCRIPTION_ID
field_54115
BLOCK_PREFIXED_TRANSLATION_KEY
private static final RegistryKeyedValue<Item, String>
ITEM_DESCRIPTION_ID
field_54116
ITEM_PREFIXED_TRANSLATION_KEY
private DefaultComponentBinder$ComponentInitializer<Item>
componentInitializer
field_1_954
initializer
private SimpleItemStackView
craftingRemainingItem
field_8018
recipeRemainder
private FeatureSet
requiredFeatures
field_40210
requiredFeatures
private RegistryKey<Item>
id
field_54117
registryKey
private RegistryKeyedValue<Item, String>
descriptionId
field_54118
translationKey
private final RegistryKeyedValue<Item, Identifier>
model
field_54119
modelId

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public Item$Settings
food(FoodProperties foodProperties)
method_19265(class_4174 arg0)
food(FoodComponent foodComponent)
public Item$Settings
food(FoodProperties foodProperties, Consumable consumable)
method_62833(class_4174 arg0, class_10124 arg1)
food(FoodComponent foodComponent, ConsumableComponent consumableComponent)
public Item$Settings
usingConvertsTo(Item item)
method_62834(class_1792 arg0)
useRemainder(Item convertInto)
public Item$Settings
useCooldown(float seconds)
method_62832(float arg0)
useCooldown(float seconds)
public Item$Settings
stacksTo(int max)
method_7889(int arg0)
maxCount(int maxCount)
public Item$Settings
durability(int maxDamage)
method_7895(int arg0)
maxDamage(int maxDamage)
public Item$Settings
craftRemainder(Item craftingRemainingItem)
method_1_824(class_1792 arg0)
recipeRemainder(Item item)
public Item$Settings
craftRemainder(ItemStackTemplate craftingRemainingItem)
method_1_825(class_1_107 arg0)
recipeRemainder(SimpleItemStackView item)
public Item$Settings
rarity(Rarity rarity)
method_7894(class_1814 arg0)
rarity(Rarity rarity)
public Item$Settings
fireResistant()
method_24359()
fireproof()
public Item$Settings
jukeboxPlayable(ResourceKey<JukeboxSong> song)
method_60745(class_5321<class_9793> arg0)
jukeboxPlayable(RegistryKey<JukeboxSong> songKey)
public Item$Settings
enchantable(int value)
method_61649(int arg0)
enchantable(int enchantability)
public Item$Settings
repairable(Item repairItem)
method_61648(class_1792 arg0)
repairable(Item repairIngredient)
public Item$Settings
repairable(TagKey<Item> repairItems)
method_61647(class_6862<class_1792> arg0)
repairable(TagKey<Item> repairIngredientsTag)
public Item$Settings
equippable(EquipmentSlot slot)
method_63682(class_1304 arg0)
equippable(EquipmentSlot slot)
public Item$Settings
equippableUnswappable(EquipmentSlot slot)
method_64194(class_1304 arg0)
equippableUnswappable(EquipmentSlot slot)
public Item$Settings
tool(ToolMaterial material, TagKey<Block> minesEfficiently, float attackDamageBaseline, float attackSpeedBaseline, float disableBlockingSeconds)
method_66331(class_9886 arg0, class_6862<class_2248> arg1, float arg2, float arg3, float arg4)
tool(ToolMaterial material, TagKey<Block> effectiveBlocks, float attackDamage, float attackSpeed, float disableBlockingForSeconds)
public Item$Settings
pickaxe(ToolMaterial material, float attackDamageBaseline, float attackSpeedBaseline)
method_66330(class_9886 arg0, float arg1, float arg2)
pickaxe(ToolMaterial material, float attackDamage, float attackSpeed)
public Item$Settings
axe(ToolMaterial material, float attackDamageBaseline, float attackSpeedBaseline)
method_67190(class_9886 arg0, float arg1, float arg2)
axe(ToolMaterial material, float attackDamage, float attackSpeed)
public Item$Settings
hoe(ToolMaterial material, float attackDamageBaseline, float attackSpeedBaseline)
method_67192(class_9886 arg0, float arg1, float arg2)
hoe(ToolMaterial material, float attackDamage, float attackSpeed)
public Item$Settings
shovel(ToolMaterial material, float attackDamageBaseline, float attackSpeedBaseline)
method_67193(class_9886 arg0, float arg1, float arg2)
shovel(ToolMaterial material, float attackDamage, float attackSpeed)
public Item$Settings
sword(ToolMaterial material, float attackDamageBaseline, float attackSpeedBaseline)
method_66333(class_9886 arg0, float arg1, float arg2)
sword(ToolMaterial material, float attackDamage, float attackSpeed)
public Item$Settings
spear(ToolMaterial material, float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold)
method_75216(class_9886 arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, float arg9)
spear(ToolMaterial material, float swingAnimationSeconds, float chargeDamageMultiplier, float chargeDelaySeconds, float maxDurationForDismountSeconds, float minSpeedForDismount, float maxDurationForChargeKnockbackInSeconds, float minSpeedForChargeKnockback, float maxDurationForChargeDamageInSeconds, float minRelativeSpeedForChargeDamage)
public Item$Settings
spawnEgg(EntityType<?> type)
method_72499(class_1299<?> arg0)
spawnEgg(EntityType<?> entityType)
public Item$Settings
humanoidArmor(ArmorMaterial material, ArmorType type)
method_66332(class_1741 arg0, class_8051 arg1)
armor(ArmorMaterial material, EquipmentType type)
public Item$Settings
wolfArmor(ArmorMaterial material)
method_67188(class_1741 arg0)
wolfArmor(ArmorMaterial material)
public Item$Settings
horseArmor(ArmorMaterial material)
method_67191(class_1741 arg0)
horseArmor(ArmorMaterial material)
public Item$Settings
nautilusArmor(ArmorMaterial material)
method_75217(class_1741 arg0)
nautilusArmor(ArmorMaterial material)
public Item$Settings
trimMaterial(ResourceKey<TrimMaterial> material)
method_67189(class_5321<class_8054> arg0)
trimMaterial(RegistryKey<ArmorTrimMaterial> trimMaterial)
public Item$Settings
requiredFeatures(FeatureFlag... flags)
method_45434(class_7696... arg0)
requires(FeatureFlag... features)
public Item$Settings
requiredFeatures(FeatureFlagSet flags)
method_1_3095(class_7699 arg0)
requires(FeatureSet requiredFeatures)
public Item$Settings
setId(ResourceKey<Item> id)
method_63686(class_5321<class_1792> arg0)
registryKey(RegistryKey<Item> registryKey)
public Item$Settings
overrideDescription(String descriptionId)
method_63684(String arg0)
translationKey(String translationKey)
public Item$Settings
useBlockDescriptionPrefix()
method_63685()
useBlockPrefixedTranslationKey()
public Item$Settings
useItemDescriptionPrefix()
method_63687()
useItemPrefixedTranslationKey()
private RegistryKey<Item>
itemIdOrThrow()
method_1_829()
getItemKey()
protected String
effectiveDescriptionId()
method_63689()
getTranslationKey()
public Identifier
effectiveModel()
method_63691()
getModelId()
public <T> Item$Settings
component(DataComponentType<T> type, T value)
method_1_823(class_9331<T> arg0, T arg1)
withComponent(ComponentType<T> type, T value)
public <T> Item$Settings
delayedComponent(DataComponentType<T> type, DataComponentInitializers$SingleComponentInitializer<T> initializer)
method_1_826(class_9331<T> arg0, class_1_117$class_1_123<T> arg1)
withComponent(ComponentType<T> type, DefaultComponentBinder$RegistryDependentComponentFactory<T> arg1)
public <T> Item$Settings
delayedHolderComponent(DataComponentType<Holder<T>> type, ResourceKey<T> valueKey)
method_1_827(class_9331<class_6880<T>> arg0, class_5321<T> arg1)
withComponent(ComponentType<RegistryEntry<T>> type, RegistryKey<T> key)
public Item$Settings
attributes(ItemAttributeModifiers attributes)
method_57348(class_9285 arg0)
attributeModifiers(AttributeModifiersComponent attributeModifiersComponent)
private DefaultComponentBinder$ComponentInitializer<Item>
finalizeInitializer(Component name, Identifier model)
method_1_828(class_2561 arg0, class_2960 arg1)
createComponentInitializer(Text name, Identifier model)
private static void
lambda$finalizeInitializer$0(Component arg0, Identifier arg1, DataComponentMap$Builder arg2, HolderLookup$Provider arg3, ResourceKey arg4)
method_1_831(class_2561 arg0, class_2960 arg1, class_9323$class_9324 arg2, class_7225$class_7874 arg3, class_5321 arg4)
method_1_831(Text arg0, Identifier arg1, ComponentMap$Builder builder, RegistryWrapper$WrapperLookup lookup, RegistryKey key)
private static void
lambda$finalizeInitializer$1(DataComponentMap arg0)
method_1_832(class_9323 arg0)
method_1_832(ComponentMap components)
private static void
lambda$delayedHolderComponent$0(DataComponentType arg0, ResourceKey arg1, DataComponentMap$Builder arg2, HolderLookup$Provider arg3, ResourceKey arg4)
method_1_830(class_9331 arg0, class_5321 arg1, class_9323$class_9324 arg2, class_7225$class_7874 arg3, class_5321 arg4)
method_1_830(ComponentType arg0, RegistryKey arg1, ComponentMap$Builder builder, RegistryWrapper$WrapperLookup lookup, RegistryKey key)
private static JukeboxPlayableComponent
lambda$jukeboxPlayable$0(ResourceKey arg0, HolderLookup$Provider arg1)
method_1_833(class_5321 arg0, class_7225$class_7874 arg1)
method_1_833(RegistryKey arg0, RegistryWrapper$WrapperLookup arg1)
private static DamageResistantComponent
lambda$fireResistant$0(HolderLookup$Provider arg0)
method_1_2914(class_7225$class_7874 arg0)
method_1_2914(RegistryWrapper$WrapperLookup arg0)
private static void
lambda$new$0(DataComponentMap$Builder arg0, HolderLookup$Provider arg1, ResourceKey arg2)
method_1_834(class_9323$class_9324 arg0, class_7225$class_7874 arg1, class_5321 arg2)
method_1_834(ComponentMap$Builder builder, RegistryWrapper$WrapperLookup lookup, RegistryKey key)
private static String
lambda$static$1(ResourceKey arg0)
method_63688(class_5321 arg0)
method_63688(RegistryKey key)
private static String
lambda$static$0(ResourceKey arg0)
method_63690(class_5321 arg0)
method_63690(RegistryKey key)