Interface BrushBuilderSnapshot

All Superinterfaces:
ConfigurationSerializable

public interface BrushBuilderSnapshot extends ConfigurationSerializable
Represents a snapshot of a BrushBuilder.
  • Method Details

    • serialize

      @NotNull @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface ConfigurationSerializable
    • placementModifier

      Map<Nameable,Mutator<?>> 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 builder
      settingsRegistry - settings registry
      schematicRegistry - schematic registry
      Returns:
      new BrushBuilder instance.