render
block
render.block(Vec3 position, int color, boolean outline, boolean shade);
render.block(int x, int y, int z, int color, boolean outline, boolean shade);Renders a block at a specified position in the world. Must be called during the onRenderWorld event.
bloom
render.bloom.prepare();
render.bloom.apply(int passes, float radius);Applies a bloom shader to all renders between prepare and apply.
blur
render.blur.prepare();
render.blur.apply(int passes, float radius);Applies a blur shader to all renders between prepare and apply.
entity
render.entity(Entity entity, int color, float partialTicks, boolean outline, boolean shade);Renders an entity outline.
entityGui
render.entityGui(Entity en, int x, int y, float mouseX, float mouseY, int scale);Renders an entity model on the screen.
getCameraRotations
double[] rotations = render.getCameraRotations();Returns the rotations of the camera as an array [yaw, pitch].
getFontHeight
int fontHeight = render.getFontHeight();Returns the height of the current font.
getFontWidth
int fontWidth = render.getFontWidth(String text);Returns the width of the specified text.
getPosition
Vec3 position = render.getPosition();Returns the position of the camera.
getRotations
double[] rotations = render.getRotations();Returns the rotations of the camera as an array [yaw, pitch].
image
render.image(Image image, float x, float y, float width, float height);Renders an image on the screen.
isInView
boolean isInView = render.isInView(Entity en);Returns true if the specified entity is within the field of view of the camera.
item
render.item(ItemStack item, float x, float y, float scale);Renders an item on the screen.
line2D
render.line2D(double startX, double startY, double endX, double endY, float lineWidth, int color);Renders a line on the screen.
line3D
render.line3D(Vec3 start, Vec3 end, float lineWidth, int color);
render.line3D(double startX, double startY, double startZ, double endX, double endY, double endZ, float lineWidth, int color);Renders a line in the world.
rect
render.rect(float startX, float startY, float endX, float endY, int color);Renders a rectangle on the screen.
resetEquippedProgress
render.resetEquippedProgress();Resets the equipped animation.
roundedRect
render.roundedRect(float startX, float startY, float endX, float endY, float radius, int color);Renders a rounded rectangle on the screen.
text2d
render.text2d(String text, float x, float y, float scale, int color, boolean shadow);Renders text on the screen.
text3d
render.text3d(String text, Vec3 position, float scale, boolean shadow, boolean depth, int color);Renders text in the world.
tracer
render.tracer(Entity en, float lineWidth, int color, float partialTicks);Renders a tracer line to a specified entity.
worldToScreen
Vec3 screen = render.worldToScreen(double x, double y, double z, int scaleFactor, float partialTicks);Returns the screen coordinates and screen depth.
x
x axis
double
y
y axis
double
z
depth
double
Last updated