Class Preset
java.lang.Object
de.eldoria.schematicbrush.storage.preset.Preset
- All Implemented Interfaces:
Comparable<Preset>,ConfigurationSerializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final Stringprotected final List<SchematicSetBuilder> -
Constructor Summary
ConstructorsConstructorDescriptionPreset(String name, String description, List<SchematicSetBuilder> schematicSets) Preset(String name, List<SchematicSetBuilder> schematicSets) -
Method Summary
Modifier and TypeMethodDescriptionintDescription of the presetvoiddescription(String description) Set the descriptionstatic Presetdeserialize(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:
serializein 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:
compareToin interfaceComparable<Preset>
-