Class ItemMappings

java.lang.Object
org.geysermc.geyser.registry.type.ItemMappings

public class ItemMappings extends Object
  • Constructor Details

    • ItemMappings

      public ItemMappings()
  • Method Details

    • getMapping

      @Nonnull public ItemMapping getMapping(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
      Gets an ItemMapping from the given ItemStack.
      Parameters:
      itemStack - the itemstack
      Returns:
      an item entry from the given java edition identifier
    • getMapping

      @Nonnull public ItemMapping getMapping(int javaId)
      Gets an ItemMapping from the given Minecraft: Java Edition id.
      Parameters:
      javaId - the id
      Returns:
      an item entry from the given java edition identifier
    • getMapping

      public ItemMapping getMapping(String javaIdentifier)
      Gets an ItemMapping from 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

      public ItemMapping getMapping(com.nukkitx.protocol.bedrock.data.inventory.ItemData data)
      Gets an ItemMapping from the given ItemData.
      Parameters:
      data - the item data
      Returns:
      an item entry from the given item data