Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Rotation Enum Reference

Public Member Functions

Rotation rotateClockwise ()
 
Rotation rotateCounterClockwise ()
 

Public Attributes

 NONE
 
 CLOCKWISE
 
 FLIPPED
 
 COUNTER_CLOCKWISE
 

Detailed Description

An enum to specify a rotation based orientation, like that on a clock.

It represents how something is viewed, as opposed to cardinal directions.

Definition at line 8 of file Rotation.java.

Member Function Documentation

Rotation org.bukkit.Rotation.rotateClockwise ( )

Rotate clockwise by 90 degrees.

Returns
the relative rotation

Definition at line 35 of file Rotation.java.

35  {
36  return rotations[(this.ordinal() + 1) & 0x3];
37  }
Rotation org.bukkit.Rotation.rotateCounterClockwise ( )

Rotate counter-clockwise by 90 degrees.

Returns
the relative rotation

Definition at line 44 of file Rotation.java.

44  {
45  return rotations[(this.ordinal() - 1) & 0x3];
46  }

Member Data Documentation

org.bukkit.Rotation.CLOCKWISE

Rotated clockwise by 90 degrees

Definition at line 17 of file Rotation.java.

org.bukkit.Rotation.COUNTER_CLOCKWISE

Rotated counter-clockwise by 90 degrees

Definition at line 25 of file Rotation.java.

org.bukkit.Rotation.FLIPPED

Flipped upside-down, a 180 degree rotation

Definition at line 21 of file Rotation.java.

org.bukkit.Rotation.NONE

No rotation

Definition at line 13 of file Rotation.java.


The documentation for this enum was generated from the following file: