Interface BrushSettings
- All Superinterfaces:
Randomable
Setting of a
SchematicBrush
-
Method Summary
Modifier and TypeMethodDescriptionMutator
<?> getMutator
(PlacementModifier type) Get a mutator of the brushint
Counts all schematics in all brushes.void
mutate
(PasteMutation mutation) Mutate thePasteMutation
nextSchematic
(SchematicBrush brush) Get the next schematic and the set containing it from theschematicSets()
list based on theirSchematicSet.weight()
.void
Refresehs the underlying mutators.Get the current schematic selection modevoid
schematicSelection
(SchematicSelection schematicSelection) Get the schematic sets of this brushtoBuilder
(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Converts the brush setting to aBrushBuilder
representing all settings applied.int
Get the total weight of allschematicSets()
Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.Randomable
random, randomInt
-
Method Details
-
nextSchematic
Get the next schematic and the set containing it from theschematicSets()
list based on theirSchematicSet.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 allschematicSets()
- Returns:
- total weight
-
getMutator
Get a mutator of the brush- Parameters:
type
- type to request- Returns:
- the mutator.
-
mutate
Mutate thePasteMutation
- Parameters:
mutation
- mutation instance
-
toBuilder
BrushBuilder toBuilder(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Converts the brush setting to aBrushBuilder
representing all settings applied.- Parameters:
player
- playersettingsRegistry
- setting registryschematicRegistry
- 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
-