Interface BrushSettings
- All Superinterfaces:
Randomable
Setting of a
SchematicBrush-
Method Summary
Modifier and TypeMethodDescriptionMutator<?> getMutator(PlacementModifier type) Get a mutator of the brushintCounts all schematics in all brushes.voidmutate(PasteMutation mutation) Mutate thePasteMutationnextSchematic(SchematicBrush brush) Get the next schematic and the set containing it from theschematicSets()list based on theirSchematicSet.weight().voidRefresehs the underlying mutators.Get the current schematic selection modevoidschematicSelection(SchematicSelection schematicSelection) Get the schematic sets of this brushtoBuilder(Player player, BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Converts the brush setting to aBrushBuilderrepresenting all settings applied.intGet 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 aBrushBuilderrepresenting 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
-