Class ItemMappings
java.lang.Object
org.geysermc.geyser.registry.type.ItemMappings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMapping(int javaId)Gets anItemMappingfrom the given Minecraft: Java Edition id.getMapping(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)Gets anItemMappingfrom the givenItemStack.getMapping(com.nukkitx.protocol.bedrock.data.inventory.ItemData data)Gets anItemMappingfrom the givenItemData.getMapping(String javaIdentifier)Gets anItemMappingfrom the given Minecraft: Java Edition block state identifier.
-
Constructor Details
-
ItemMappings
public ItemMappings()
-
-
Method Details
-
getMapping
public ItemMapping getMapping(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)Gets anItemMappingfrom the givenItemStack.- Parameters:
itemStack- the itemstack- Returns:
- an item entry from the given java edition identifier
-
getMapping
Gets anItemMappingfrom the given Minecraft: Java Edition id.- Parameters:
javaId- the id- Returns:
- an item entry from the given java edition identifier
-
getMapping
Gets anItemMappingfrom the given Minecraft: Java Edition block state identifier.- Parameters:
javaIdentifier- the block state identifier- Returns:
- an item entry from the given java edition identifier
-
getMapping
Gets anItemMappingfrom the givenItemData.- Parameters:
data- the item data- Returns:
- an item entry from the given item data
-