Interface BrushSettings

All Superinterfaces:
Randomable

public interface BrushSettings extends Randomable
Setting of a SchematicBrush
  • Method Details

    • nextSchematic

      Get the next schematic and the set containing it from the schematicSets() list based on their SchematicSet.weight().
      Returns:
      a random brush
    • getSchematicCount

      int getSchematicCount()
      Counts all schematics in all brushes. No deduplication.
      Returns:
      total number of schematics in all brushes.
    • schematicSets

      List<SchematicSet> schematicSets()
      Get the schematic sets of this brush
      Returns:
      list of SchematicSet
    • totalWeight

      int totalWeight()
      Get the total weight of all schematicSets()
      Returns:
      total weight
    • getMutator

      Mutator<?> getMutator(PlacementModifier type)
      Get a mutator of the brush
      Parameters:
      type - type to request
      Returns:
      the mutator.
    • mutate

      void mutate(PasteMutation mutation)
      Mutate the PasteMutation
      Parameters:
      mutation - mutation instance
    • toBuilder

      BrushBuilder toBuilder(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry)
      Converts the brush setting to a BrushBuilder representing all settings applied.
      Parameters:
      player - player
      settingsRegistry - setting registry
      schematicRegistry - schematic registry
      Returns:
      new brush builder instance
    • refreshMutator

      void refreshMutator()
      Refresehs the underlying mutators.
    • schematicSelection

      SchematicSelection schematicSelection()
      Get the current schematic selection mode
      Returns:
      schematic selection mode
    • schematicSelection

      void schematicSelection(SchematicSelection schematicSelection)