java.lang.Object
com.shanebeestudios.nms.api.world.item.McTier

public class McTier extends Object
Wrapper class for Minecraft Tier
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Get the attack damage bonus of this tier
    int
    Get the enchantment value of this tier
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Minecraft removed the tier level
    @NotNull net.minecraft.world.item.crafting.Ingredient
    Get the repair ingredient of this tier
    float
    Get the speed of this tier
    int
    Get the uses of this tier
    static McTier
    wrap(net.minecraft.world.item.TieredItem tieredItem)
    Wrapper an NMS TieredItem for easy to use methods

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • wrap

      public static McTier wrap(net.minecraft.world.item.TieredItem tieredItem)
      Wrapper an NMS TieredItem for easy to use methods
      Parameters:
      tieredItem - NMS TieredItem to wrap
      Returns:
      Wrapped item
    • getUses

      public int getUses()
      Get the uses of this tier
      Returns:
      Uses of this tier
    • getSpeed

      public float getSpeed()
      Get the speed of this tier
      Returns:
      Speed of this tier
    • getAttackDamageBonus

      public float getAttackDamageBonus()
      Get the attack damage bonus of this tier
      Returns:
      Attack damage bonus of this tier
    • getLevel

      @Deprecated(forRemoval=true, since="April 27/2023") public int getLevel()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Minecraft removed the tier level
      Get the level of this tier
      Returns:
      Level of this tier
    • getEnchantmentValue

      public int getEnchantmentValue()
      Get the enchantment value of this tier
      Returns:
      Enchantment value of this tier
    • getRepairIngredient

      @NotNull public @NotNull net.minecraft.world.item.crafting.Ingredient getRepairIngredient()
      Get the repair ingredient of this tier
      Returns:
      Repair ingredient of this tier