Package org.spongepowered.api.data.type
Class StructureModes
- java.lang.Object
-
- org.spongepowered.api.data.type.StructureModes
-
public final class StructureModes extends java.lang.Object
An enumeration of vanillaStructureMode
s.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<StructureMode>
CORNER
Corner mode allows for an easier and automatic size calculation while saving or loading structures.static DefaultedRegistryReference<StructureMode>
DATA
Data mode can only be used during natural generation.static DefaultedRegistryReference<StructureMode>
LOAD
Load mode allows a player to load and rotate saved structure files.static DefaultedRegistryReference<StructureMode>
SAVE
Save mode allows a player to highlight a structure in the world and save it to a file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<StructureMode>
registry()
-
-
-
Field Detail
-
CORNER
public static final DefaultedRegistryReference<StructureMode> CORNER
Corner mode allows for an easier and automatic size calculation while saving or loading structures.
-
DATA
public static final DefaultedRegistryReference<StructureMode> 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
public static final DefaultedRegistryReference<StructureMode> LOAD
Load mode allows a player to load and rotate saved structure files.
-
SAVE
public static final DefaultedRegistryReference<StructureMode> SAVE
Save mode allows a player to highlight a structure in the world and save it to a file.
-
-
Method Detail
-
registry
public static Registry<StructureMode> registry()
-
-