public class ItemTranslator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SHIELD |
| Constructor and Description |
|---|
ItemTranslator() |
| Modifier and Type | Method and Description |
|---|---|
ItemEntry |
getItem(com.nukkitx.protocol.bedrock.data.ItemData data) |
ItemEntry |
getItem(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack stack) |
ItemEntry |
getItemEntry(String javaIdentifier) |
void |
init() |
com.nukkitx.protocol.bedrock.data.ItemData |
translateToBedrock(GeyserSession session,
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack stack) |
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack |
translateToJava(GeyserSession session,
com.nukkitx.protocol.bedrock.data.ItemData data) |
public static final int SHIELD
public void init()
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack translateToJava(GeyserSession session, com.nukkitx.protocol.bedrock.data.ItemData data)
public com.nukkitx.protocol.bedrock.data.ItemData translateToBedrock(GeyserSession session, com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack stack)
public ItemEntry getItem(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack stack)
public ItemEntry getItem(com.nukkitx.protocol.bedrock.data.ItemData data)
Copyright © 2020 GeyserMC. All rights reserved.