Class Brush
java.lang.Object
de.eldoria.schematicbrush.storage.brush.Brush
- All Implemented Interfaces:
Comparable<Brush>
,ConfigurationSerializable
Class used for serialization and saving of a
BrushBuilderSnapshot
/-
Field Summary
-
Constructor Summary
ConstructorDescriptionBrush
(String name, BrushBuilder builder) Constructs a new brush with the given brush.Brush
(String name, BrushBuilderSnapshot snapshot) Constructs a new brush with the given brush.Brush
(String name, String description, BrushBuilderSnapshot snapshot) Constructs a new brush with the given snapshot. -
Method Summary
Modifier and TypeMethodDescriptionint
void
description
(String description) static Brush
deserialize
(Map<String, Object> objectMap) Constructor required byConfigurationSerializable
in order to deserialize the object.detailComponent
(boolean global, BrushSettingsRegistry registry) boolean
int
hashCode()
infoComponent
(boolean global, boolean canDelete, BrushSettingsRegistry registry) name()
Name of brushsimpleComponent
(BrushSettingsRegistry registry) snapshot()
Snapshot of the brush
-
Field Details
-
description
-
-
Constructor Details
-
Brush
Constructs a new brush with the given snapshot.- Parameters:
name
- name of brushsnapshot
- snapshot of brush
-
Brush
Constructs a new brush with the given brush.- Parameters:
name
- name of brushbuilder
- brush builder
-
Brush
Constructs a new brush with the given brush.- Parameters:
name
- name of brushsnapshot
- snapshot
-
-
Method Details
-
deserialize
Constructor required byConfigurationSerializable
in order to deserialize the object.- Parameters:
objectMap
- map of the already deserialized object
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
name
Name of brush- Returns:
- name
-
snapshot
Snapshot of the brush- Returns:
- snapshot
-
equals
-
hashCode
public int hashCode() -
description
-
description
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Brush>
-
simpleComponent
-
infoComponent
-
detailComponent
-