Package net.risingworld.api.objects
Class Vehicle
java.lang.Object
net.risingworld.api.objects.Vehicle
Represents a vehicle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
getName()
getPassenger
(int seat) Player[]
int
short
Gets the type ID of the vehicle.boolean
void
setPosition
(float x, float y, float z) void
setPosition
(Vector3f position) void
setRotation
(Quaternion rotation) void
setStrength
(int strength)
-
Constructor Details
-
Vehicle
protected Vehicle(long handle)
-
-
Method Details
-
getTypeID
public short getTypeID()Gets the type ID of the vehicle.- Returns:
- the type ID
-
isDestroyed
public boolean isDestroyed() -
getName
-
getPosition
-
setPosition
-
setPosition
public void setPosition(float x, float y, float z) -
getRotation
-
setRotation
-
getStrength
public int getStrength() -
setStrength
public void setStrength(int strength) -
getPassenger
-
getPassengers
-
ejectAllPassengers
public void ejectAllPassengers() -
destroy
public void destroy()
-