Class StructurePieceStorage

java.lang.Object
net.glowstone.io.structure.StructurePieceStorage

public final class StructurePieceStorage extends Object
The class responsible for mapping structure piece types to their storage methods and reading and writing structure piece data using those storage methods.
  • Method Details

    • loadStructurePiece

      public static GlowStructurePiece loadStructurePiece(CompoundTag compound)
      Load a structure piece from the given data tag.
      Parameters:
      compound - The tag to load from.
      Returns:
      The newly constructed structure piece.
      Throws:
      IllegalArgumentException - if there is an error in the data.
    • saveStructurePiece

      public static void saveStructurePiece(GlowStructurePiece structurePiece, CompoundTag compound)
      Save a structure piece data to the given compound tag.
      Parameters:
      structurePiece - The structure piece to save.
      compound - The target tag.