Render
Information about the player binding

drawRect

1
render.drawRect(x, y, width, height, color)
Copied!
Renders a rectangle using the specified parameters
Parameter
Type
Description
x
Number
X pos of the rect
y
Number
Y pos of the rect
width
Number
Width of the rect
height
Number
Height of the rect
color
​Color​
Color of the rect

drawRoundedRect

1
render.drawRoundedRect(x, y, width, height, radius, color)
Copied!
Renders a rounded rectangle
Parameter
Type
Description
x
Number
X pos of the rect
y
Number
Y pos of the rect
width
Number
Width of the rect
height
Number
Height of the rect
radius
Number
Radius of the rounded parts
color
​Color​
Color of the rect

drawMCString

1
render.drawMCString(text, x, y, color)
Copied!
Draws a string with the minecraft font renderer
Parameter
Type
Description
text
String
Text to display
x
Number
X pos of the string
y
Number
Y pos of the string
color
​Color​
Color of the string

drawCenteredMCString

Draws a centered string with the minecraft font renderer

drawMCStringShadow

Draws a shadowed string with the minecraft font renderer

drawMCStringOutline

Draws an outlined string with the minecraft font renderer

drawString

1
render.drawString(text, x, y, color, size)
Copied!
Draws a string with the client font renderer using the specified font in HUD module
Parameter
Type
Description
text
String
Text to display
x
Number
X pos of the string
y
Number
Y pos of the string
color
​Color​
Color of the string
size
Number
Size of the string
(18, 20, 22, 24, 28)

drawCenteredString

Draws a centered string with the client font renderer

drawStringShadow

Draws a shadowed string with the client font renderer

getStringWidthMC

1
render.getStringWidthMC(text)
Copied!
Returns the minecraft font string width as a Number
Parameter
Type
Description
text
String
Text to check how big it is

getStringWidth

1
render.getStringWidth(text, size)
Copied!
Returns the client font renderer string width as a Number
Parameter
Type
Description
text
String
Text to check how big it is
size
Number
Size of the string
(18, 20, 22, 24, 28)

getFontHeightMC

1
render.getFontHeightMC()
Copied!
Returns the height of the minecraft font

getFontHeight

1
render.getFontHeight(size)
Copied!
Returns the height of the client font
Parameter
Type
Description
size
Number
Size of the string
(18, 20, 22, 24, 28)

getScaledWidth

1
render.getScaledWidth()
Copied!
Returns the scaled width of the screen as a Number

getScaledHeight

1
render.getScaledHeight()
Copied!
Returns the scaled height of the screen as a Number

drawEntity3D

1
render.drawEntity3D(x, y, scale, yaw, pitch, entity)
Copied!
Parameter
Type
Description
x
Number
X pos of the entity
y
Number
Y pos of the entity
scale
Number
Scale of the entity
yaw
Number
Yaw of the entity
pitch
Number
Pitch of the entity
entity
​EntityLivingBase​
Entity to render
Last modified 2mo ago