Package org.geysermc.geyser.inventory
Class GeyserEnchantOption
java.lang.Object
org.geysermc.geyser.inventory.GeyserEnchantOption
A mutable "wrapper" around
EnchantOptionData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.nukkitx.protocol.bedrock.data.inventory.EnchantOptionData
build(GeyserSession session)
int
boolean
void
setEnchantIndex(int javaEnchantIndex, int bedrockEnchantIndex)
void
setEnchantLevel(int enchantLevel)
void
setXpCost(int xpCost)
-
Constructor Details
-
GeyserEnchantOption
public GeyserEnchantOption(int javaIndex)
-
-
Method Details
-
build
-
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()
-