Interface SchematicSetBuilder
- All Superinterfaces:
ConfigurationSerializable
,Copyable
Builder to build schematic sets.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a sub brush.copy()
Copy the schematic set by creating a new instance and copying the entries by value to the new builder to allow independent modificationvoid
enforceDefaultModifier
(BrushSettingsRegistry registry) Set the default modifierSchematic set as componentinteractComponent
(Player player, BrushSettingsRegistry registry, int id) Schematic set as interactable componentvoid
refreshSchematics
(Player player, SchematicRegistry registry) refresh all selected schematicsvoid
removeModifier
(Nameable modifier) Removes the modifierint
Schematic count of setSchematic modifierSchematicsselector()
Selectorvoid
Selectorvoid
setModifier
(Nameable modifier, Mutator<?> mutator) Sets a modifier for this schematic set.int
weight()
Weight<T extends Nameable>
voidwithMutator
(T type, Mutator<?> mutation) Set the rotation of the brush.void
withWeight
(int weight) Set the weight of the brush.
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
withMutator
Set the rotation of the brush.- Type Parameters:
T
- type of mutator- Parameters:
type
- type of mutatormutation
- rotation of the brush
-
enforceDefaultModifier
Set the default modifier- Parameters:
registry
- registry
-
withWeight
void withWeight(int weight) Set the weight of the brush.- Parameters:
weight
- weight of the brush
-
build
SchematicSet build()Build a sub brush.- Returns:
- new sub brush instance with set values and default if not set.
-
selector
Selector selector()Selector- Returns:
- selector
-
schematicModifier
Schematic modifier- Returns:
- unmodifiable map
-
schematics
Schematics- Returns:
- schematics
-
weight
int weight()Weight- Returns:
- weight
-
selector
Selector- Parameters:
selector
- selector
-
refreshSchematics
refresh all selected schematics- Parameters:
player
- playerregistry
- registry
-
schematicCount
int schematicCount()Schematic count of set- Returns:
- schematic count
-
interactComponent
Schematic set as interactable component- Parameters:
player
- playerregistry
- registryid
- id- Returns:
- component
-
infoComponent
String infoComponent()Schematic set as component- Returns:
- component
-
copy
SchematicSetBuilder copy()Copy the schematic set by creating a new instance and copying the entries by value to the new builder to allow independent modification -
setModifier
Sets a modifier for this schematic set. Will override already present values- Parameters:
modifier
- modifier namemutator
- mutator to set
-
removeModifier
Removes the modifier- Parameters:
modifier
- modifier
-