Class StructureModes

java.lang.Object
org.spongepowered.api.data.type.StructureModes

public final class StructureModes extends Object
An enumeration of vanilla StructureModes.
  • Field Details

    • 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 Details