Class PlacementModifier
java.lang.Object
de.eldoria.schematicbrush.brush.config.util.Nameable
de.eldoria.schematicbrush.brush.config.modifier.BaseModifier
de.eldoria.schematicbrush.brush.config.modifier.PlacementModifier
Represents a placement modifier which is applied to a
SchematicBrush
.
A placement modifier must be added via BrushSettingsRegistry.registerPlacementModifier(PlacementModifier, ModifierProvider)
.
A Placement modifier is a key represented by a string
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PlacementModifier
Filter modifier keystatic final PlacementModifier
Flip modifier keystatic final PlacementModifier
IncludeAir modifier keystatic final PlacementModifier
Offset modifier keystatic final PlacementModifier
Placement modifier keystatic final PlacementModifier
ReplaceAll modifier keystatic final PlacementModifier
Rotation modifier key -
Method Summary
Methods inherited from class de.eldoria.schematicbrush.brush.config.modifier.BaseModifier
description, getLocalizedName, required
-
Field Details
-
PLACEMENT
Placement modifier key -
INCLUDE_AIR
IncludeAir modifier key -
REPLACE_ALL
ReplaceAll modifier key -
OFFSET
Offset modifier key -
FILTER
Filter modifier key -
FLIP
Flip modifier key -
ROTATION
Rotation modifier key
-
-
Method Details
-
of
public static PlacementModifier of(String name, String localizedName, String description, boolean required) Creates a new PlacementModifier.- Parameters:
name
- name of the modifierdescription
- the 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
-