Interface Rotation
- All Superinterfaces:
- Shiftable<Rotation>,- ValueProvider<Rotation>
Represents a rotation.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionintdegree()Rotation represented as positive int value.static RotationGet a string as rotation value.default @NotNull Rotationvalue()Get the current valuedefault voidChange the current value.static RotationvalueOf(int value) Get a string as rotation value.default RotationReturns a new valueMethods inherited from interface de.eldoria.schematicbrush.brush.config.util.Shiftableshift, shiftableMethods inherited from interface de.eldoria.schematicbrush.brush.config.util.ValueProviderrefresh
- 
Field Details- 
ROT_ZERORepresents a rotation of 0.
- 
ROT_LEFTRepresents a rotation of 90 degrees counterclockwise. Alterantive a rotation of -90 or 270 degrees.
- 
ROT_HALFRepresents a rotation of 180 degrees.
- 
ROT_RIGHTRepresents a rotation of 90 degrees clockwise. Alterantive a rotation of 90 degrees.
 
- 
- 
Method Details- 
parseGet a string as rotation value.- Parameters:
- value- value to parse
- Returns:
- rotation enum
- Throws:
- IllegalArgumentException- when value can't be parsed
- CommandException- when the value can't be parsed
 
- 
valueOfGet a string as rotation value.- Parameters:
- value- value to parse
- Returns:
- rotation enum
- Throws:
- IllegalArgumentException- when value can't be parsed
 
- 
degreeint degree()Rotation represented as positive int value.- Returns:
- rotation as positive integer
 
- 
valueDescription copied from interface:ValueProviderChange the current value.- Specified by:
- valuein interface- ValueProvider<Rotation>
- Parameters:
- value- value to set
 
- 
valueDescription copied from interface:ValueProviderGet the current value- Specified by:
- valuein interface- ValueProvider<Rotation>
- Returns:
- the value
 
- 
valueProviderDescription copied from interface:ValueProviderReturns a new value- Specified by:
- valueProviderin interface- ValueProvider<Rotation>
- Returns:
- new value
 
 
-