Class ItemUtils

java.lang.Object
org.geysermc.geyser.util.ItemUtils

public class ItemUtils extends Object
  • Constructor Details

    • ItemUtils

      public ItemUtils()
  • Method Details

    • getEnchantmentLevel

      public static int getEnchantmentLevel(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemNBTData, String enchantmentId)
    • getCorrectBedrockDurability

      public static int getCorrectBedrockDurability(GeyserSession session, int javaId, int original)
      Returns:
      the correct Bedrock durability for this item.
    • getCustomName

      public static String getCustomName(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag)
      Parameters:
      itemTag - the NBT tag of the item
      Returns:
      the custom name of the item