Interface SchematicSet
- All Superinterfaces:
Randomable
A class holding a set of schematics with weight and
Mutator-
Method Summary
Modifier and TypeMethodDescriptionMutator<?> getMutator(SchematicModifier type) Get the mutatorvoidmutate(PasteMutation mutation) Mutate the paste mutation with all mutatorsvoidRefresh the values of all mutatorsSchematicsselector()Get the selector of the set.Convert the set into a buildervoidupdateWeight(int weight) Update a not weighted brush.intweight()Weight of setMethods inherited from interface de.eldoria.schematicbrush.brush.config.util.Randomable
random, randomInt
-
Method Details
-
getMutator
Get the mutator- Parameters:
type- type- Returns:
- mutator
-
updateWeight
Update a not weighted brush.- Parameters:
weight- weight to set.- Throws:
IllegalStateException- when the weight is not -1 and this method is called.IllegalArgumentException- when the weight is less than 1.
-
schematics
Schematics- Returns:
- schematics
-
weight
int weight()Weight of set- Returns:
- weight
-
mutate
Mutate the paste mutation with all mutators- Parameters:
mutation- mutation
-
selector
Selector selector()Get the selector of the set.- Returns:
- selector
- Since:
- 2.0.2
-
toBuilder
SchematicSetBuilder toBuilder()Convert the set into a builder- Returns:
- new builder instance
-
refreshMutator
void refreshMutator()Refresh the values of all mutators
-