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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBrush(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 TypeMethodDescriptionintvoiddescription(String description) static Brushdeserialize(Map<String, Object> objectMap) Constructor required byConfigurationSerializablein order to deserialize the object.detailComponent(boolean global, BrushSettingsRegistry registry) booleaninthashCode()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 byConfigurationSerializablein order to deserialize the object.- Parameters:
objectMap- map of the already deserialized object
-
serialize
- Specified by:
serializein interfaceConfigurationSerializable
-
name
Name of brush- Returns:
- name
-
snapshot
Snapshot of the brush- Returns:
- snapshot
-
equals
-
hashCode
public int hashCode() -
description
-
description
-
compareTo
- Specified by:
compareToin interfaceComparable<Brush>
-
simpleComponent
-
infoComponent
-
detailComponent
-