class
ItemRender (client-side)
Available since version: 0.1.7
This class represents rendered item visible on the screen.
Constructor
int x, int y, int width, int height, string instance
Parameters:
int
x: the x position in virtuals.int
y: the y position in virtuals.int
width: the width size in virtuals.int
height: the height size in virtuals.string
instance: the instance of the item to render.
Properties
bool
visible
Available since version: 0.1.7
Represents the visibility state of the render.
int
rotX
Available since version: 0.1.7
Represents the rotation of the item render on the x axis.
int
rotY
Available since version: 0.1.7
Represents the rotation of the item render on the y axis.
int
rotZ
Available since version: 0.1.7
Represents the rotation of the item render on the z axis.
int
zbias
Available since version: 0.1.7
Represents the z bias (Depth Bias) of rendered item model.
bool
lightingswell
Available since version: 0.1.7
Note
The game uses it to highlight currently selected item in your inventory.
Represents the highlighting state of the item render.
string
visual
Available since version: 0.1.9
Represents the file name of the model used as rendered item visual.
string
instance
Available since version: 0.1.10
Represents the instance of rendered item.
Methods
top
Available since version: 0.1.7
This method will move the item render at the end of the render queue.
It will be visible at the top of the screen (other elements will be covered by it).
void top()
setPosition
Available since version: 0.1.7
This method will set the render position on screen in virtuals.
void setPosition(int x, int y)
Parameters:
int
x: the x position in virtuals.int
y: the y position in virtuals.
setPositionPx
Available since version: 0.1.7
This method will set the render position on screen in pixels.
void setPositionPx(int x, int y)
Parameters:
int
x: the x position in pixels.int
y: the y position in pixels.
setSize
Available since version: 0.1.7
This method will set the render size on screen in virtuals.
void setSize(int width, int height)
Parameters:
int
width: the width size in virtuals.int
height: the height size in virtuals.
setSizePx
Available since version: 0.1.7
This method will set the render size on screen in pixels.
void setSizePx(int width, int height)
Parameters:
int
width: the width size in pixels.int
height: the height size in pixels.
getPosition
Available since version: 0.1.7
This method will get the render position on screen in virtuals.
{x, y} getPosition()
Returns {x, y}
:
the render position on screen.
getPositionPx
Available since version: 0.1.7
This method will get the render position on screen in pixels.
{x, y} getPositionPx()
Returns {x, y}
:
the render position on screen.
getSize
Available since version: 0.1.7
This method will get the render size on screen in virtuals.
{width, height} getSize()
Returns {width, height}
:
the render size on screen.
getSizePx
Available since version: 0.1.7
This method will get the render size on screen in pixels.
{width, height} getSizePx()
Returns {width, height}
:
the render size on screen.