Interface SchematicSetBuilder
- All Superinterfaces:
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 modificationvoidenforceDefaultModifier(BrushSettingsRegistry registry) Set the default modifierSchematic set as componentinteractComponent(Player player, BrushSettingsRegistry registry, int id) Schematic set as interactable componentvoidrefreshSchematics(Player player, SchematicRegistry registry) refresh all selected schematicsvoidremoveModifier(Nameable modifier) Removes the modifierintSchematic count of setSchematic modifierSchematicsselector()SelectorvoidSelectorvoidsetModifier(Nameable modifier, Mutator<?> mutator) Sets a modifier for this schematic set.intweight()Weight<T extends Nameable>
voidwithMutator(T type, Mutator<?> mutation) Set the rotation of the brush.voidwithWeight(int weight) Set the weight of the brush.
-
Method Details
-
withMutator
-
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
-
schematicModifier
-
schematics
-
weight
int weight()Weight- Returns:
- weight
-
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
-
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
-
removeModifier
-