Class SchematicModifier
java.lang.Object
de.eldoria.schematicbrush.brush.config.util.Nameable
de.eldoria.schematicbrush.brush.config.modifier.BaseModifier
de.eldoria.schematicbrush.brush.config.modifier.SchematicModifier
Represents a placement modifier which is applied to a
SchematicSet
.
A placement modifier must be added via BrushSettingsRegistry.registerSchematicModifier(SchematicModifier, ModifierProvider)
(PlacementModifier, ModifierProvider)}.
A Placement modifier is a key represented by a string
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SchematicModifier
Flip modifier keystatic final SchematicModifier
Offset modifier keystatic final SchematicModifier
Rotation modifier key -
Constructor Summary
ConstructorDescriptionSchematicModifier
(String name, String localizedName, String description, boolean required) Creates a new schematic modifier -
Method Summary
Methods inherited from class de.eldoria.schematicbrush.brush.config.modifier.BaseModifier
description, getLocalizedName, required
-
Field Details
-
ROTATION
Rotation modifier key -
FLIP
Flip modifier key -
OFFSET
Offset modifier key
-
-
Constructor Details
-
SchematicModifier
Creates a new schematic modifier- Parameters:
name
- name. Defines the type of the modifierdescription
- description of the modifierrequired
- true if this modifier is required to be set. This will enforce a default value for the modifier.
-
-
Method Details
-
of
public static SchematicModifier of(String name, String localizedName, String description, boolean required) Creates a new PlacementModifier.- Parameters:
name
- name of the modifierdescription
- description of the modifierrequired
- true if this modifier is required to be set. This will enforce a default value for the modifier.- Returns:
- new PlacementModifier
-