Class ItemMappings
java.lang.Object
org.geysermc.geyser.registry.type.ItemMappings
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanit.unimi.dsi.fastutil.ints.IntListit.unimi.dsi.fastutil.ints.IntListList<com.nukkitx.protocol.bedrock.data.inventory.ItemData>List<com.nukkitx.protocol.bedrock.data.inventory.ComponentItemData>com.nukkitx.protocol.bedrock.data.inventory.ItemData[]it.unimi.dsi.fastutil.ints.Int2ObjectMap<String>List<com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry>String[]getItems()A unique exception as this is an item in Bedrock, but not in Java.getMapping(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.it.unimi.dsi.fastutil.ints.IntListinthashCode()toString()
-
Method Details
-
getMapping
@Nonnull 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
-
builder
-
getCachedJavaMappings
-
getItems
-
getLodestoneCompass
A unique exception as this is an item in Bedrock, but not in Java. -
getCreativeItems
public com.nukkitx.protocol.bedrock.data.inventory.ItemData[] getCreativeItems() -
getItemEntries
-
getStoredItems
-
getItemNames
-
getJavaOnlyItems
-
getBucketIds
public it.unimi.dsi.fastutil.ints.IntList getBucketIds() -
getBoatIds
public it.unimi.dsi.fastutil.ints.IntList getBoatIds() -
getSpawnEggIds
public it.unimi.dsi.fastutil.ints.IntList getSpawnEggIds() -
getCarpets
-
getComponentItemData
-
getCustomIdMappings
-
equals
-
hashCode
public int hashCode() -
toString
-