Interface Flip
- All Superinterfaces:
Shiftable<Flip>
,ValueProvider<Flip>
Represents a flip of a schematic.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
alias()
Alias which is used for parsing onlystatic Flip
Parse a string to a valid flip valuecom.sk89q.worldedit.math.Vector3
The direction as vectorname()
Simple name of the flip.default @NotNull Flip
value()
Get the current valuedefault void
Change the current value.static Flip
Get the flip value by name of the flip.default Flip
Returns a new valuestatic Flip[]
values()
A enum like representation of all flip values.Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.Shiftable
shift, shiftable
Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.ValueProvider
refresh
-
Field Details
-
NONE
No flip. -
EAST_WEST
A Flip from east to west. -
NORTH_SOUTH
A flip from north to south. -
UP_DOWN
A flip from up to down.
-
-
Method Details
-
values
A enum like representation of all flip values.- Returns:
- flip values
-
asFlip
Parse a string to a valid flip value- Parameters:
input
- string to parse- Returns:
- flip enum value
- Throws:
IllegalArgumentException
- when the value can't be parsed.CommandException
- when the flip type is invalid
-
valueOf
Get the flip value by name of the flip.- Parameters:
input
- input- Returns:
- value of flip or
NONE
if no match was found.
-
name
String name()Simple name of the flip. Can not contain spaces- Returns:
- name
-
alias
String[] alias()Alias which is used for parsing only- Returns:
- array of aliases
-
direction
com.sk89q.worldedit.math.Vector3 direction()The direction as vector- Returns:
- direction
-
value
Description copied from interface:ValueProvider
Change the current value.- Specified by:
value
in interfaceValueProvider<Flip>
- Parameters:
value
- value to set
-
value
Description copied from interface:ValueProvider
Get the current value- Specified by:
value
in interfaceValueProvider<Flip>
- Returns:
- the value
-
valueProvider
Description copied from interface:ValueProvider
Returns a new value- Specified by:
valueProvider
in interfaceValueProvider<Flip>
- Returns:
- new value
-