public interface ICameraAPI
Modifier and Type | Method and Description |
---|---|
int |
getAngleTo(Locatable locatable)
Yaw angle to a specific locatable.
|
int |
getAngleTo(Locatable origin,
Locatable locatable)
Yaw angle to a specific locatable.
|
int |
getAngleToDeg(Locatable locatable)
Yaw angle to a specific locatable.
|
int |
getAngleToDeg(Locatable origin,
Locatable locatable)
Yaw angle to a specific locatable.
|
Direction |
getDirection()
Gets the yaw angle as cardinal
Direction . |
Direction |
getDirectionTo(Locatable locatable)
Determines the direction to a specific locatable.
|
int |
getMinimapAngle()
Gets the angle of the minimap.
|
int |
getPitch()
Gets the pitch angle of the camera.
|
int |
getX()
Gets the x-coordinate of the camera.
|
int |
getY()
Gets the y-coordinate of camera.
|
int |
getYaw()
Gets the yaw angle of the camera.
|
int |
getYawDeg()
Gets the yaw angle of the camera in degrees.
|
int |
getZ()
Gets the z-coordinate of camera.
|
void |
setPitch(int pitch)
Set camera pitch to given pitch.
|
void |
setPitch(int pitch,
boolean async)
Set camera pitch to given pitch.
|
void |
setYaw(int yaw)
Set camera yaw to given angle.
|
void |
setYaw(int yaw,
boolean async)
Set camera yaw to given angle.
|
void |
setYawDeg(int degrees)
Set camera yaw angle to given angle.
|
void |
setYawDeg(int degrees,
boolean async)
Set camera yaw angle to given angle.
|
void |
turnTo(Locatable locatable)
Turns the camera by changing the yaw angle to be able to see the given locatable.
|
void |
turnTo(Locatable locatable,
boolean async)
Turns the camera by changing the yaw angle to be able to see the given locatable.
|
int getX()
int getY()
int getZ()
int getMinimapAngle()
int getPitch()
int getYaw()
Direction
int getYawDeg()
Direction getDirection()
Direction
.Direction
Direction getDirectionTo(Locatable locatable)
locatable
- the locatableDirection
int getAngleTo(Locatable locatable)
locatable
- the locatableDirection
int getAngleTo(Locatable origin, Locatable locatable)
origin
- the originlocatable
- the locatableDirection
int getAngleToDeg(Locatable locatable)
locatable
- the locatableDirection
int getAngleToDeg(Locatable origin, Locatable locatable)
origin
- the originlocatable
- the locatableDirection
void setPitch(int pitch)
pitch
- 0-90void setPitch(int pitch, boolean async)
pitch
- 0-90async
- true to turn camera asynchronouslyvoid setYaw(int yaw)
yaw
- 0-2047void setYaw(int yaw, boolean async)
yaw
- 0-2047async
- true to turn camera asynchronouslyvoid setYawDeg(int degrees)
degrees
- angle in degrees 0-360, where north is 0 and south 180void setYawDeg(int degrees, boolean async)
degrees
- angle in degrees 0-360, where north is 0 and south 180async
- true to turn camera asynchronouslyvoid turnTo(Locatable locatable)
locatable
- the locatable to turn tovoid turnTo(Locatable locatable, boolean async)
locatable
- the locatable to turn toasync
- true to turn camera asynchronously