public class ItemMappings extends Object
| Constructor and Description |
|---|
ItemMappings() |
| Modifier and Type | Method and Description |
|---|---|
ItemMapping |
getMapping(int javaId)
Gets an
ItemMapping from the given Minecraft: Java
Edition id. |
ItemMapping |
getMapping(com.nukkitx.protocol.bedrock.data.inventory.ItemData data)
Gets an
ItemMapping from the given ItemData. |
ItemMapping |
getMapping(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
Gets an
ItemMapping from the given ItemStack. |
ItemMapping |
getMapping(String javaIdentifier)
Gets an
ItemMapping from the given Minecraft: Java Edition
block state identifier. |
public ItemMapping getMapping(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
ItemMapping from the given ItemStack.itemStack - the itemstackpublic ItemMapping getMapping(int javaId)
ItemMapping from the given Minecraft: Java
Edition id.javaId - the idpublic ItemMapping getMapping(String javaIdentifier)
ItemMapping from the given Minecraft: Java Edition
block state identifier.javaIdentifier - the block state identifierpublic ItemMapping getMapping(com.nukkitx.protocol.bedrock.data.inventory.ItemData data)
ItemMapping from the given ItemData.data - the item dataCopyright © 2021 GeyserMC. All rights reserved.