Package org.geysermc.geyser.util
Class ItemUtils
java.lang.Object
org.geysermc.geyser.util.ItemUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCorrectBedrockDurability(GeyserSession session, int javaId, int original)
static String
getCustomName(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag)
static int
getEnchantmentLevel(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemNBTData, String enchantmentId)
-
Constructor Details
-
ItemUtils
public ItemUtils()
-
-
Method Details
-
getEnchantmentLevel
public static int getEnchantmentLevel(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemNBTData, String enchantmentId) -
getCorrectBedrockDurability
- Returns:
- the correct Bedrock durability for this item.
-
getCustomName
- Parameters:
itemTag
- the NBT tag of the item- Returns:
- the custom name of the item
-