Package net.minecraft.world.item
Class SmithingTemplateItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.SmithingTemplateItem
- All Implemented Interfaces:
FeatureElement,ItemLike,IItemExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ResourceLocation> private final Componentprivate static final Componentprivate final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate final Componentprivate final List<ResourceLocation> private static final ChatFormattingprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final ChatFormattingprivate final ComponentFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTemplateItem(Component pAppliesTo, Component pIngredients, Component pUpgradeDescription, Component pBaseSlotDescription, Component pAdditionsSlotDescription, List<ResourceLocation> pBaseSlotEmptyIcons, List<ResourceLocation> pAdditionalSlotEmptyIcons, FeatureFlag... pRequiredFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(ItemStack pStack, Item.TooltipContext pContext, List<Component> pTooltipComponents, TooltipFlag pTooltipFlag) static SmithingTemplateItemcreateArmorTrimTemplate(ResourceKey<TrimPattern> pKey, FeatureFlag... pRequiredFeatures) static SmithingTemplateItemcreateArmorTrimTemplate(ResourceLocation pName, FeatureFlag... pRequiredFeatures) private static List<ResourceLocation> private static List<ResourceLocation> static SmithingTemplateItemprivate static List<ResourceLocation> private static List<ResourceLocation> Methods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canFitInsideContainerItems, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
-
Field Details
-
TITLE_FORMAT
-
DESCRIPTION_FORMAT
-
INGREDIENTS_TITLE
-
APPLIES_TO_TITLE
-
NETHERITE_UPGRADE
-
ARMOR_TRIM_APPLIES_TO
-
ARMOR_TRIM_INGREDIENTS
-
ARMOR_TRIM_BASE_SLOT_DESCRIPTION
-
ARMOR_TRIM_ADDITIONS_SLOT_DESCRIPTION
-
NETHERITE_UPGRADE_APPLIES_TO
-
NETHERITE_UPGRADE_INGREDIENTS
-
NETHERITE_UPGRADE_BASE_SLOT_DESCRIPTION
-
NETHERITE_UPGRADE_ADDITIONS_SLOT_DESCRIPTION
-
EMPTY_SLOT_HELMET
-
EMPTY_SLOT_CHESTPLATE
-
EMPTY_SLOT_LEGGINGS
-
EMPTY_SLOT_BOOTS
-
EMPTY_SLOT_HOE
-
EMPTY_SLOT_AXE
-
EMPTY_SLOT_SWORD
-
EMPTY_SLOT_SHOVEL
-
EMPTY_SLOT_PICKAXE
-
EMPTY_SLOT_INGOT
-
EMPTY_SLOT_REDSTONE_DUST
-
EMPTY_SLOT_QUARTZ
-
EMPTY_SLOT_EMERALD
-
EMPTY_SLOT_DIAMOND
-
EMPTY_SLOT_LAPIS_LAZULI
-
EMPTY_SLOT_AMETHYST_SHARD
-
appliesTo
-
ingredients
-
upgradeDescription
-
baseSlotDescription
-
additionsSlotDescription
-
baseSlotEmptyIcons
-
additionalSlotEmptyIcons
-
-
Constructor Details
-
SmithingTemplateItem
public SmithingTemplateItem(Component pAppliesTo, Component pIngredients, Component pUpgradeDescription, Component pBaseSlotDescription, Component pAdditionsSlotDescription, List<ResourceLocation> pBaseSlotEmptyIcons, List<ResourceLocation> pAdditionalSlotEmptyIcons, FeatureFlag... pRequiredFeatures)
-
-
Method Details
-
createArmorTrimTemplate
public static SmithingTemplateItem createArmorTrimTemplate(ResourceKey<TrimPattern> pKey, FeatureFlag... pRequiredFeatures) -
createArmorTrimTemplate
public static SmithingTemplateItem createArmorTrimTemplate(ResourceLocation pName, FeatureFlag... pRequiredFeatures) -
createNetheriteUpgradeTemplate
-
createTrimmableArmorIconList
-
createTrimmableMaterialIconList
-
createNetheriteUpgradeIconList
-
createNetheriteUpgradeMaterialList
-
appendHoverText
public void appendHoverText(ItemStack pStack, Item.TooltipContext pContext, List<Component> pTooltipComponents, TooltipFlag pTooltipFlag) - Overrides:
appendHoverTextin classItem
-
getBaseSlotDescription
-
getAdditionSlotDescription
-
getBaseSlotEmptyIcons
-
getAdditionalSlotEmptyIcons
-