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

public class McTier extends Object
Wrapper class for Minecraft Tier
  • 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

      public int getLevel()
      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