Package net.darkhax.bookshelf.api.client
Interface RenderHelper
- All Known Implementing Classes:
ForgeRenderHelper
public interface RenderHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault int[]argb(int color) static RenderHelperget()default voidrenderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders a box with the sprite on each face.default voidrenderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, int[] color) Renders a box with the sprite on each face.default voidrenderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders a box with the sprite on each face.default voidrenderFace(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, net.minecraft.core.Direction side, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders the face of a box.voidrenderFluidBox(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.client.renderer.MultiBufferSource bufferSource, int light, int overlay)
-
Field Details
-
INSTANCE
-
-
Method Details
-
get
-
renderFluidBox
void renderFluidBox(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.client.renderer.MultiBufferSource bufferSource, int light, int overlay) -
argb
default int[] argb(int color) -
renderBox
default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, int[] color) Renders a box with the sprite on each face.- Parameters:
builder- The vertex consumer.stack- The pose stack.sprite- The sprite to render.light- The packed light data.overlay- The overlay day.color- Unpacked color data in ARGB ordering.
-
renderBox
default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders a box with the sprite on each face.- Parameters:
builder- The vertex consumer.stack- The post stack.sprite- The sprite to render.light- Packed light coordinates.overlay- Overlay data.x1- The starting render position on the X axis.x2- The ending render postion on the X axis.y1- The starting render position on the Y axis.y2- The ending render position on the Y axis.z1- The starting render position on the Z axis.z2- The ending render position on the Z axis.color- Unpacked color data in ARGB ordering.
-
renderBox
default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders a box with the sprite on each face.- Parameters:
builder- The vertex consumer.pos- The position to render at.sprite- The sprite to render.light- Packed light coordinates.overlay- Overlay data.x1- The starting render position on the X axis.x2- The ending render postion on the X axis.y1- The starting render position on the Y axis.y2- The ending render position on the Y axis.z1- The starting render position on the Z axis.z2- The ending render position on the Z axis.color- Unpacked color data in ARGB ordering.
-
renderFace
default void renderFace(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, net.minecraft.core.Direction side, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color) Renders the face of a box.- Parameters:
builder- The vertex consumer.pos- The position to render at.sprite- The sprite to render.side- The side to render.light- Packed light coordinates.overlay- Overlay data.x1- The starting render position on the X axis.x2- The ending render postion on the X axis.y1- The starting render position on the Y axis.y2- The ending render position on the Y axis.z1- The starting render position on the Z axis.z2- The ending render position on the Z axis.color- Unpacked color data in ARGB ordering.
-