render
This page will go over the Render API namespace.
getCameraPosition(): Vector3
getCameraPosition(): Vector3
Returns a 3-dimensional vector that stores the camera position.
rectangle(x, y, width, height, color): Undefined
rectangle(x, y, width, height, color): Undefined
rectangle(x, y, width, height): Undefined
rectangle(x, y, width, height): Undefined
rainbowRectangle(x, y, width, height): Undefined
rainbowRectangle(x, y, width, height): Undefined
centeredRectangle(x, y, width, height, color): Undefined
centeredRectangle(x, y, width, height, color): Undefined
centeredRectangle(x, y, width, height): Undefined
centeredRectangle(x, y, width, height): Undefined
roundedRectangle(x, y, width, height, radius, color)
roundedRectangle(x, y, width, height, radius, color)
roundedRectangleOutline(x, y, width, height, radius, thickness)
roundedRectangleOutline(x, y, width, height, radius, thickness)
Argument | Type | Description |
---|---|---|
|
| X position. |
|
| Y position. |
|
| Rectangle width |
|
| Rectangle height |
|
| Rounding radius. |
|
| Rounded outline rectangle thickness. |
|
| 3 or 4 dimensional array with the RGBA colors. |
Renders a rectangle. Names are self-explanatory.
renderItemIcon(x, y, itemstack): Undefined
renderItemIcon(x, y, itemstack): Undefined
Argument | Type | Description |
---|---|---|
|
| X position. |
|
| Y position. |
| Item to render. |
Renders an item icon.
drawLine3D(xFrom, yFrom, zFrom, xTo, yTo, zTo, color, width)
drawLine3D(xFrom, yFrom, zFrom, xTo, yTo, zTo, color, width)
drawLine3D(vectorFrom, vectorTo, color, width)
drawLine3D(vectorFrom, vectorTo, color, width)
Argument | Type | Description |
---|---|---|
|
| First position |
|
| Second position |
|
| 3 or 4 dimensional array with the RGBA colors. |
|
| Line width. |
Draws a line from one position in the world to another.
smoothCamera(): Undefined
smoothCamera(): Undefined
Smoothes the camera out on the Y position by not updating the camera Y position.
getMinecraftFontRenderer():
FontRenderer
getMinecraftFontRenderer():
FontRenderer
getCustomFontRenderer(name, size, antialiasing):
FontRenderer
getCustomFontRenderer(name, size, antialiasing):
FontRenderer
getCustomFontRendererBold(name, size, antialiasing):
FontRenderer
getCustomFontRendererBold(name, size, antialiasing):
FontRenderer
getCustomFontRendererItalic(name, size, antialiasing):
FontRenderer
getCustomFontRendererItalic(name, size, antialiasing):
FontRenderer
getCustomFontRendererBoldItalic(name, size, antialiasing):
FontRenderer
getCustomFontRendererBoldItalic(name, size, antialiasing):
FontRenderer
Argument | Type | Description |
---|---|---|
|
| Font name |
|
| Font size |
|
| Whether to use anti-aliasing on the font renderer or not. |
Creates and returns a new FontRenderer object.
getEyeHeight(): Number
getEyeHeight(): Number
Returns the eye height.
getThemeColor(): Number[]
getThemeColor(): Number[]
Returns the theme accent color.
getBackgroundShade(): Number[]
getBackgroundShade(): Number[]
Returns the background color of Rise Elements, can be used to make your visuals match Rise's.
getDropShadow(): Number[]
getDropShadow(): Number[]
Returns the bloom drop shadow color of Rise Elements, can be used to make your visuals match Rise's.
blur(callback): Undefined
blur(callback): Undefined
bloom(callback): Undefined
bloom(callback): Undefined
outline(callback): Undefined
outline(callback): Undefined
Argument | Type | Description |
---|---|---|
|
| Body of the function to apply a specified effect to. |
Applies an effect to a block of code.
Last updated