Class GeyserEnchantOption

java.lang.Object
org.geysermc.geyser.inventory.GeyserEnchantOption

public class GeyserEnchantOption extends Object
A mutable "wrapper" around EnchantOptionData
  • Constructor Details

    • GeyserEnchantOption

      public GeyserEnchantOption(int javaIndex)
  • Method Details

    • build

      public com.nukkitx.protocol.bedrock.data.inventory.EnchantOptionData build(GeyserSession session)
    • hasChanged

      public boolean hasChanged()
    • setXpCost

      public void setXpCost(int xpCost)
    • setEnchantIndex

      public void setEnchantIndex(int javaEnchantIndex, int bedrockEnchantIndex)
    • setEnchantLevel

      public void setEnchantLevel(int enchantLevel)
    • getJavaIndex

      public int getJavaIndex()