Class MapItem

java.lang.Object
org.geysermc.geyser.item.type.Item
org.geysermc.geyser.item.type.MapItem
Direct Known Subclasses:
FilledMapItem

public class MapItem extends Item
  • Constructor Details

  • Method Details

    • translateNbtToBedrock

      public void translateNbtToBedrock(GeyserSession session, com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
      Description copied from class: Item
      Takes NBT from Java Edition and converts any value that Bedrock parses differently.
      Overrides:
      translateNbtToBedrock in class Item
    • translateNbtToJava

      public void translateNbtToJava(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, ItemMapping mapping)
      Description copied from class: Item
      Takes NBT from Java Edition and converts any value that Bedrock parses differently.
      Do note that this method is, these days, only called in three places (as of 2023/~1.19):
      • Extra recipe loading
      • Creative menu
      • Stonecutters
      Therefore, if translation cannot be achieved for a certain item, it is not necessarily bad.
      Overrides:
      translateNbtToJava in class Item