Package org.spongepowered.api.data.type
Class StructureModes
java.lang.Object
org.spongepowered.api.data.type.StructureModes
An enumeration of vanilla
StructureMode
s.-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultedRegistryReference
<StructureMode> Corner mode allows for an easier and automatic size calculation while saving or loading structures.static final DefaultedRegistryReference
<StructureMode> Data mode can only be used during natural generation.static final DefaultedRegistryReference
<StructureMode> Load mode allows a player to load and rotate saved structure files.static final DefaultedRegistryReference
<StructureMode> Save mode allows a player to highlight a structure in the world and save it to a file. -
Method Summary
-
Field Details
-
CORNER
Corner mode allows for an easier and automatic size calculation while saving or loading structures. -
DATA
Data mode can only be used during natural generation.They mark the location to run a function specified by its metadata input, which can only be used for relevant structures.
The structure block is removed afterwards.
This mode is the default mode when a structure block is first placed.
-
LOAD
Load mode allows a player to load and rotate saved structure files. -
SAVE
Save mode allows a player to highlight a structure in the world and save it to a file.
-
-
Method Details
-
registry
-