Class McTier
java.lang.Object
com.shanebeestudios.nms.api.world.item.McTier
Wrapper class for Minecraft
Tier-
Method Summary
Modifier and TypeMethodDescriptionfloatGet the attack damage bonus of this tierintGet the enchantment value of this tierintgetLevel()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.IngredientGet the repair ingredient of this tierfloatgetSpeed()Get the speed of this tierintgetUses()Get the uses of this tierstatic McTierwrap(net.minecraft.world.item.TieredItem tieredItem) Wrapper an NMS TieredItem for easy to use methods
-
Method Details
-
wrap
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, for removal: This API element is subject to removal in a future version.Minecraft removed the tier levelGet 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
-