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 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
-
weight
int weight()Weight of set- Returns:
- weight
-
mutate
Mutate the paste mutation with all mutators- Parameters:
mutation- mutation
-
selector
-
toBuilder
-
refreshMutator
void refreshMutator()Refresh the values of all mutators
-