Class TieredItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
All Implemented Interfaces:
FeatureElement, ItemLike, IForgeItem
Direct Known Subclasses:
DiggerItem, SwordItem

public class TieredItem extends Item
  • Field Details

    • tier

      private final Tier tier
  • Constructor Details

  • Method Details

    • getTier

      public Tier getTier()
    • getEnchantmentValue

      public int getEnchantmentValue()
      Description copied from class: Item
      Forge: Use ItemStack sensitive version.
      Overrides:
      getEnchantmentValue in class Item
    • isValidRepairItem

      public boolean isValidRepairItem(ItemStack p_43311_, ItemStack p_43312_)
      Overrides:
      isValidRepairItem in class Item