Interface SchematicSetBuilder

All Superinterfaces:
ConfigurationSerializable, Copyable

public interface SchematicSetBuilder extends ConfigurationSerializable, Copyable
Builder to build schematic sets.
  • Method Details

    • serialize

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

      <T extends Nameable> void withMutator(T type, Mutator<?> mutation)
      Set the rotation of the brush.
      Type Parameters:
      T - type of mutator
      Parameters:
      type - type of mutator
      mutation - rotation of the brush
    • enforceDefaultModifier

      void enforceDefaultModifier(BrushSettingsRegistry registry)
      Set the default modifier
      Parameters:
      registry - registry
    • withWeight

      void withWeight(int weight)
      Set the weight of the brush.
      Parameters:
      weight - weight of the brush
    • build

      SchematicSet build()
      Build a sub brush.
      Returns:
      new sub brush instance with set values and default if not set.
    • selector

      Selector selector()
      Selector
      Returns:
      selector
    • schematicModifier

      Map<? extends Nameable,Mutator<?>> schematicModifier()
      Schematic modifier
      Returns:
      unmodifiable map
    • schematics

      Set<Schematic> schematics()
      Schematics
      Returns:
      schematics
    • weight

      int weight()
      Weight
      Returns:
      weight
    • selector

      void selector(Selector selector)
      Selector
      Parameters:
      selector - selector
    • refreshSchematics

      void refreshSchematics(Player player, SchematicRegistry registry)
      refresh all selected schematics
      Parameters:
      player - player
      registry - registry
    • schematicCount

      int schematicCount()
      Schematic count of set
      Returns:
      schematic count
    • interactComponent

      String interactComponent(Player player, BrushSettingsRegistry registry, int id)
      Schematic set as interactable component
      Parameters:
      player - player
      registry - registry
      id - id
      Returns:
      component
    • infoComponent

      String infoComponent()
      Schematic set as component
      Returns:
      component
    • copy

      Copy the schematic set by creating a new instance and copying the entries by value to the new builder to allow independent modification
      Specified by:
      copy in interface Copyable
      Returns:
      new schematic set builder instande
    • setModifier

      void setModifier(Nameable modifier, Mutator<?> mutator)
      Sets a modifier for this schematic set. Will override already present values
      Parameters:
      modifier - modifier name
      mutator - mutator to set
    • removeModifier

      void removeModifier(Nameable modifier)
      Removes the modifier
      Parameters:
      modifier - modifier