Render
Information about the render binding
drawRect
Renders a rectangle using the specified parameters
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
drawRoundedRect
Renders a rounded rectangle
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
drawGradientRect
Draws a gradient with values for all corners of a rectangle
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
alpha
Number
Alpha of the gradient
drawGradientRectHorizontal
Draws a gradient horizontally (left to right)
drawGradientRectVertical
Draws a gradient vertically (top to bottom)
drawGradientRoundedRect
Draws a rounded gradient with values for all corners of a rectangle
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 rect
drawGradientRoundHorizontal
Draws a rounded gradient horizontally (left to right)
drawGradientRoundVertical
Draws a rounded gradient horizontally (top to bottom)
applyGradient
Applies a gradient to any rendered object in the callback function
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
alpha
Number
Alpha of the final result
callback function
Function
create a function here to specify a specific group of objects for the gradient to be applied too
interpolateColors
Returns a an interpolated Color between the two colors based on the percentage
applyOpacity
Applies opacity to a color with a value ranging from 0-1
alpha
Number
Alpha value of the new color
getScaledWidth
Returns the scaled width of the screen as a Number
getScaledHeight
Returns the scaled height of the screen as a Number
drawEntity3D
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
drawEntity2D
Draws the entity's head
x
Number
X pos of the entity's head
y
Number
Y pos of the entity's head
width
Number
Width of the entity's head
height
Number
Height of the entity's head
newContinualAnimation
Returns a new Continual Animation object
createFramebuffer
Returns a new Framebuffer object
drawBoundingBox
This renders the entity's bounding box with the specified color
color
Color
Color of the bounding box
scissorStart
This is a helper function for scissoring out stuff
x
Number
The x position of the scissor
y
Number
The y position of the scissor
width
Number
The width of the scissor
height
Number
The height of the scissor
scissorEnd
Disables the scissor test
getPartialTicks
Gets the render partial ticks as a Number
bindMinecraftFramebuffer
This rebinds the Minecraft framebuffer so you can continue rendering after using other Framebuffer objects
createShaderUtil
Returns a ShaderUtil object
fragSource
String
The complete fragment shader source
Last updated
Was this helpful?