static class
ItemGround (server-side)
Available since version: 0.1.0
This class represents item on the ground.
Properties
int
id (read-only)
Represents the unique id of the item ground.
string
instance (read-only)
Represents the item instance of the item ground.
int
amount (read-only)
Represents the item amount of item ground.
bool
physicsEnabled
Available since version: 0.3.2
Represents the state of flag about item ground physics.
string
world (read-only)
Represents the item ground world (.ZEN file path).
int
virtualWorld
Available since version: 0.1.2
Represents the virtual world of item ground.
Methods
getPosition
This method will get the item ground position on the world.
{x, y, z} getPosition()
Returns {x, y, z}
:
the item ground position on the world.
setPosition
Available since version: 0.3.2
This method will set the item ground position in the world.
void setPosition(float x, float y, float z)
Parameters:
float
x: the position in the world on the x axis.float
y: the position in the world on the y axis.float
z: the position in the world on the z axis.
getRotation
Available since version: 0.3.0
This method will get the item ground rotation on the world.
{x, y, z} getRotation()
Returns {x, y, z}
:
the item ground rotation on the world.
setRotation
Available since version: 0.3.2
This method will set the item ground rotation in the world.
void setRotation(float x, float y, float z)
Parameters:
float
x: the rotation in the world on the x axis.float
y: the rotation in the world on the y axis.float
z: the rotation in the world on the z axis.
Callbacks
No callbacks.