Class BasicItemTranslator
java.lang.Object
org.geysermc.geyser.translator.inventory.item.NbtItemStackTranslator
org.geysermc.geyser.translator.inventory.item.nbt.BasicItemTranslator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
translateToBedrock(GeyserSession session, com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag, ItemMapping mapping)
Translate the item NBT to Bedrockvoid
translateToJava(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag, ItemMapping mapping)
Translate the item NBT to Java.Methods inherited from class org.geysermc.geyser.translator.inventory.item.NbtItemStackTranslator
acceptItem
-
Constructor Details
-
BasicItemTranslator
public BasicItemTranslator()
-
-
Method Details
-
translateToBedrock
public void translateToBedrock(GeyserSession session, com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag, ItemMapping mapping)Description copied from class:NbtItemStackTranslator
Translate the item NBT to Bedrock- Overrides:
translateToBedrock
in classNbtItemStackTranslator
- Parameters:
session
- the client's current sessionitemTag
- the item's CompoundTagmapping
- Geyser's item mapping
-
translateToJava
public void translateToJava(com.github.steveice10.opennbt.tag.builtin.CompoundTag itemTag, ItemMapping mapping)Description copied from class:NbtItemStackTranslator
Translate the item NBT to Java.- Overrides:
translateToJava
in classNbtItemStackTranslator
- Parameters:
itemTag
- the item's CompoundTagmapping
- Geyser's item mapping
-