java.lang.Object
de.eldoria.schematicbrush.storage.preset.Preset
All Implemented Interfaces:
Comparable<Preset>, ConfigurationSerializable

public class Preset extends Object implements ConfigurationSerializable, Comparable<Preset>
  • Field Details

  • Constructor Details

  • Method Details

    • deserialize

      public static Preset deserialize(Map<String,Object> objectMap)
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface ConfigurationSerializable
    • name

      public String name()
      Name of the preset. This is unique for each preset
      Returns:
      name
    • infoComponent

      public String infoComponent(boolean global, boolean canDelete)
    • detailComponent

      public String detailComponent(boolean global)
    • simpleComponent

      public String simpleComponent()
    • description

      public String description()
      Description of the preset
      Returns:
      description
    • description

      public void description(String description)
      Set the description
      Parameters:
      description - the description
    • schematicSetsCopy

      public List<SchematicSetBuilder> schematicSetsCopy()
      Get a copy of all schematic set builders contained in the preset
      Returns:
      list of presets
    • schematicSets

      public List<SchematicSetBuilder> schematicSets()
      Get all schematic set builders contained in the preset
      Returns:
      list of presets
    • compareTo

      public int compareTo(@NotNull @NotNull Preset o)
      Specified by:
      compareTo in interface Comparable<Preset>