public final class StructureStorage extends Object
| Modifier and Type | Method and Description |
|---|---|
static Collection<StructureStore<?>> |
getStructureStores()
Returns all known structure stores.
|
static GlowStructure |
loadStructure(GlowWorld world,
CompoundTag compound)
Load a structure in the given world from the given data tag.
|
static StructureStore<GlowStructure> |
saveStructure(GlowStructure structure,
CompoundTag compound)
Save a structure data to the given compound tag.
|
public static Collection<StructureStore<?>> getStructureStores()
public static GlowStructure loadStructure(GlowWorld world, CompoundTag compound)
world - The target world.compound - The tag to load from.IllegalArgumentException - if there is an error in the data.public static StructureStore<GlowStructure> saveStructure(GlowStructure structure, CompoundTag compound)
structure - The structure to save.compound - The target tag.Copyright © 2021. All rights reserved.