public final class StructurePieceStorage extends Object
Modifier and Type | Method and Description |
---|---|
static GlowStructurePiece |
loadStructurePiece(CompoundTag compound)
Load a structure piece from the given data tag.
|
static void |
saveStructurePiece(GlowStructurePiece structurePiece,
CompoundTag compound)
Save a structure piece data to the given compound tag.
|
public static GlowStructurePiece loadStructurePiece(CompoundTag compound)
compound
- The tag to load from.IllegalArgumentException
- if there is an error in the data.public static void saveStructurePiece(GlowStructurePiece structurePiece, CompoundTag compound)
structurePiece
- The structure piece to save.compound
- The target tag.Copyright © 2021. All rights reserved.