Package com.epicbot.api.shared.methods
Interface ICameraAPI
public interface ICameraAPI
-
Method Summary
Modifier and TypeMethodDescriptionintgetAngleTo(Locatable locatable) Yaw angle to a specific locatable.intgetAngleTo(Locatable origin, Locatable locatable) Yaw angle to a specific locatable.intgetAngleToDeg(Locatable locatable) Yaw angle to a specific locatable.intgetAngleToDeg(Locatable origin, Locatable locatable) Yaw angle to a specific locatable.Gets the yaw angle as cardinalDirection.getDirectionTo(Locatable locatable) Determines the direction to a specific locatable.intgetPitch()Gets the pitch angle of the camera.intintgetX()Gets the x-coordinate of the camera.intgetY()Gets the y-coordinate of camera.intgetYaw()Gets the yaw angle of the camera.intGets the yaw angle of the camera in degrees.intgetZ()Gets the z-coordinate of camera.intgetZoom()Gets camera zoom level found in Display settings.voidsetPitch(int pitch) Set camera pitch to given pitch.voidsetPitch(int pitch, boolean async) Set camera pitch to given pitch.voidsetYaw(int yaw) Set camera yaw to given angle.voidsetYaw(int yaw, boolean async) Set camera yaw to given angle.voidsetYawDeg(int degrees) Set camera yaw angle to given angle.voidsetYawDeg(int degrees, boolean async) Set camera yaw angle to given angle.voidTurns the camera by changing the yaw angle to be able to see the given locatable.voidTurns the camera by changing the yaw angle to be able to see the given locatable.
-
Method Details
-
getX
int getX()Gets the x-coordinate of the camera.- Returns:
- int
-
getY
int getY()Gets the y-coordinate of camera.- Returns:
- int
-
getZ
int getZ()Gets the z-coordinate of camera.- Returns:
- int
-
getPitch
int getPitch()Gets the pitch angle of the camera.- Returns:
- 0-90
-
getRealPitch
int getRealPitch() -
getYaw
int getYaw()Gets the yaw angle of the camera.- Returns:
- 0-2047
- See Also:
-
getYawDeg
int getYawDeg()Gets the yaw angle of the camera in degrees.- Returns:
- degrees 0-360, where north is 0 and south 180
-
getZoom
int getZoom()Gets camera zoom level found in Display settings.- Returns:
- zoom level between 0 and 100
-
getDirection
Direction getDirection()Gets the yaw angle as cardinalDirection.- Returns:
- the direction
- See Also:
-
setPitch
void setPitch(int pitch) Set camera pitch to given pitch.- Parameters:
pitch- 0-90
-
setPitch
void setPitch(int pitch, boolean async) Set camera pitch to given pitch.- Parameters:
pitch- 0-90async- true to turn camera asynchronously
-
setYaw
void setYaw(int yaw) Set camera yaw to given angle.- Parameters:
yaw- 0-2047
-
setYaw
void setYaw(int yaw, boolean async) Set camera yaw to given angle.- Parameters:
yaw- 0-2047async- true to turn camera asynchronously
-
setYawDeg
void setYawDeg(int degrees) Set camera yaw angle to given angle.- Parameters:
degrees- angle in degrees 0-360, where north is 0 and south 180
-
setYawDeg
void setYawDeg(int degrees, boolean async) Set camera yaw angle to given angle.- Parameters:
degrees- angle in degrees 0-360, where north is 0 and south 180async- true to turn camera asynchronously
-