Class ShulkerBoxItem


public class ShulkerBoxItem extends BlockItem
  • Constructor Details

  • Method Details

    • translateNbtToBedrock

      public void translateNbtToBedrock(@NonNull GeyserSession session, @NonNull 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(@NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, @NonNull ItemMapping mapping)
      Description copied from class: Item
      Takes NBT from Bedrock Edition and converts any value that Java 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