render

block

render.block(Vec3 position, int color, boolean outline, boolean shade);

Renders a block position in the world. Must be called onRenderWorld.

bloom

render.bloom.prepare();
render.bloom.apply(int passes, float radius);

All renders between prepare and apply will have a bloom shader.

blur

render.blur.prepare();
render.blur.apply(int passes, float radius);

All renders between prepare and apply will have a blur shader.

entity

render.entity(Entity entity, int color, float partialTicks, boolean outline, boolean shade);

Renders an entity in the world.

entityGui

render.entityGui(Entity en, int x, int y, float mouseX, float mouseY, int scale);

Renders an entity model on the screen.

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 viewer position.

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 whether a specified entity is within your field of view.

item

render.item(ItemStack item, float x, float y, float scale);

Renders an item on the screen.

line2D

render.line2D(float startX, float startY, float endX, float endY, float lineWidth, int color);

Renders a line on the screen.

line3D

render.line3D(Vec3 start, Vec3 end, 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.

roundedRect

render.roundedRect(float startX, float startY, float endX, float endY, float radius, int color);

Renders a rounded rectangle on the screen.

text

render.text(String text, float x, float y, float scale int color, boolean shadow);

Renders text on the screen.

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.

propertydescriptiontype

x

x axis

double

y

y axis

double

z

depth

double

Last updated