Interface BrushBuilderSnapshot
- All Superinterfaces:
ConfigurationSerializable
Represents a snapshot of a
BrushBuilder
.-
Method Summary
Modifier and TypeMethodDescriptionload
(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Loads a brush builder snapshot.Placement modifiers of the snapshot.Schematic sets of the snapshot
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
placementModifier
Placement modifiers of the snapshot.- Returns:
- placement modifiers as map
-
schematicSets
List<SchematicSetBuilder> schematicSets()Schematic sets of the snapshot- Returns:
- list of schematic sets
-
load
BrushBuilder load(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Loads a brush builder snapshot.This is required to inject required dependencies which were not serialized.
- Parameters:
player
- player of the buildersettingsRegistry
- settings registryschematicRegistry
- schematic registry- Returns:
- new BrushBuilder instance.
-