public class Viewport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EAST
Deprecated.
|
static int |
NORTH
Deprecated.
|
static int |
NORTH_EAST
Deprecated.
|
static int |
NORTH_WEST
Deprecated.
|
static int |
SOUTH
Deprecated.
|
static int |
SOUTH_EAST
Deprecated.
|
static int |
SOUTH_WEST
Deprecated.
|
static int |
WEST
Deprecated.
|
Constructor and Description |
---|
Viewport(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
angle(int degrees)
Will angle/turn the camera to the specified degree, this will change the yaw of the camera
|
boolean |
entityIsVisible(net.runelite.api.Actor entity)
Deprecated.
|
void |
faceCamera(int direction,
boolean tiltUp)
Deprecated.
|
void |
faceEntity(net.runelite.api.Actor entity)
Deprecated.
|
void |
faceEntity(net.runelite.api.GameObject entity)
Deprecated.
|
void |
faceEntity(net.runelite.api.coords.WorldPoint point)
Deprecated.
|
int |
pitch()
Will return the pitch of the camera
|
boolean |
pitch(boolean up)
Will tilt the camera either completely up or down
|
boolean |
pitch(int percent)
Will tilt the camera to specified pitch percentage out of 100
|
boolean |
turnTo(SimpleLocatable locatable) |
int |
x()
Will return the x-position of the camera
|
int |
y()
Will return the y-position of the camera
|
int |
yaw()
Will return the yaw of the camera
|
int |
z()
Will return the z-position of the camera
|
@Deprecated public static final int NORTH
@Deprecated public static final int SOUTH
@Deprecated public static final int WEST
@Deprecated public static final int EAST
@Deprecated public static final int NORTH_EAST
@Deprecated public static final int NORTH_WEST
@Deprecated public static final int SOUTH_EAST
@Deprecated public static final int SOUTH_WEST
public Viewport(ClientContext ctx)
@Deprecated public void faceEntity(net.runelite.api.GameObject entity)
@Deprecated public void faceEntity(net.runelite.api.Actor entity)
@Deprecated public void faceEntity(net.runelite.api.coords.WorldPoint point)
@Deprecated public boolean entityIsVisible(net.runelite.api.Actor entity)
@Deprecated public void faceCamera(int direction, boolean tiltUp)
public int x()
public int y()
public int z()
public int yaw()
public int pitch()
public boolean pitch(boolean up)
up
- {true} for up and {false} for downpublic boolean pitch(int percent)
percent
- values from 0-100public boolean angle(int degrees)
degrees
- values from 0-360public boolean turnTo(SimpleLocatable locatable)