Class Preset
java.lang.Object
de.eldoria.schematicbrush.storage.preset.Preset
- All Implemented Interfaces:
Comparable<Preset>
,ConfigurationSerializable
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final String
protected final List
<SchematicSetBuilder> -
Constructor Summary
ConstructorDescriptionPreset
(String name, String description, List<SchematicSetBuilder> schematicSets) Preset
(String name, List<SchematicSetBuilder> schematicSets) -
Method Summary
Modifier and TypeMethodDescriptionint
Description of the presetvoid
description
(String description) Set the descriptionstatic Preset
deserialize
(Map<String, Object> objectMap) detailComponent
(boolean global) infoComponent
(boolean global, boolean canDelete) name()
Name of the preset.Get all schematic set builders contained in the presetGet a copy of all schematic set builders contained in the preset
-
Field Details
-
name
-
schematicSets
-
description
-
-
Constructor Details
-
Preset
-
Preset
-
-
Method Details
-
deserialize
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
name
Name of the preset. This is unique for each preset- Returns:
- name
-
infoComponent
-
detailComponent
-
simpleComponent
-
description
Description of the preset- Returns:
- description
-
description
Set the description- Parameters:
description
- the description
-
schematicSetsCopy
Get a copy of all schematic set builders contained in the preset- Returns:
- list of presets
-
schematicSets
Get all schematic set builders contained in the preset- Returns:
- list of presets
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Preset>
-