public class SuperByteBuffer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SuperByteBuffer.IVertexLighter |
static interface |
SuperByteBuffer.SpriteShiftFunc |
| Constructor and Description |
|---|
SuperByteBuffer(net.minecraft.client.renderer.BufferBuilder buf) |
| Modifier and Type | Method and Description |
|---|---|
SuperByteBuffer |
color(Color c) |
SuperByteBuffer |
color(int color) |
SuperByteBuffer |
color(int r,
int g,
int b,
int a) |
SuperByteBuffer |
disableDiffuseDiv()
Prevents vertex colors from being divided by the diffuse value calculated from the raw untransformed normal vector.
|
SuperByteBuffer |
disableDiffuseMult()
Prevents vertex colors from being multiplied by the diffuse value calculated from the final transformed normal vector.
|
SuperByteBuffer |
forEntityRender() |
SuperByteBuffer |
fullNormalTransform()
Transforms normals not only by the local matrix stack, but also by the passed matrix stack.
|
static float |
getUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float u) |
static float |
getUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float v) |
SuperByteBuffer |
hybridLight()
Uses max light from calculated light (world light or custom light) and vertex light for the final light value.
|
boolean |
isEmpty() |
SuperByteBuffer |
light() |
SuperByteBuffer |
light(int packedLightCoords) |
SuperByteBuffer |
light(net.minecraft.util.math.vector.Matrix4f lightTransform) |
SuperByteBuffer |
light(net.minecraft.util.math.vector.Matrix4f lightTransform,
int packedLightCoords) |
com.jozufozu.flywheel.util.transform.MatrixTransformStack |
matrixStacker() |
static int |
maxLight(int packedLight1,
int packedLight2) |
SuperByteBuffer |
overlay() |
SuperByteBuffer |
overlay(int overlay) |
void |
renderInto(com.mojang.blaze3d.matrix.MatrixStack input,
com.mojang.blaze3d.vertex.IVertexBuilder builder) |
SuperByteBuffer |
reset() |
SuperByteBuffer |
rotate(net.minecraft.util.Direction axis,
float radians) |
SuperByteBuffer |
rotate(net.minecraft.util.math.vector.Quaternion q) |
SuperByteBuffer |
rotateCentered(net.minecraft.util.Direction axis,
float radians) |
SuperByteBuffer |
rotateCentered(net.minecraft.util.math.vector.Quaternion q) |
SuperByteBuffer |
shiftUV(SpriteShiftEntry entry) |
SuperByteBuffer |
shiftUVScrolling(SpriteShiftEntry entry,
float scrollV) |
SuperByteBuffer |
shiftUVtoSheet(SpriteShiftEntry entry,
float uTarget,
float vTarget,
int sheetSize) |
SuperByteBuffer |
transform(com.mojang.blaze3d.matrix.MatrixStack stack) |
static int |
transformColor(byte component,
float scale) |
static int |
transformColor(int component,
float scale) |
SuperByteBuffer |
translate(double x,
double y,
double z) |
SuperByteBuffer |
translate(float x,
float y,
float z) |
SuperByteBuffer |
translate(net.minecraft.util.math.vector.Vector3d vec) |
public SuperByteBuffer(net.minecraft.client.renderer.BufferBuilder buf)
public static float getUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float u)
public static float getUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float v)
public void renderInto(com.mojang.blaze3d.matrix.MatrixStack input,
com.mojang.blaze3d.vertex.IVertexBuilder builder)
public SuperByteBuffer reset()
public com.jozufozu.flywheel.util.transform.MatrixTransformStack matrixStacker()
public SuperByteBuffer translate(net.minecraft.util.math.vector.Vector3d vec)
public SuperByteBuffer translate(double x, double y, double z)
public SuperByteBuffer translate(float x, float y, float z)
public SuperByteBuffer transform(com.mojang.blaze3d.matrix.MatrixStack stack)
public SuperByteBuffer rotate(net.minecraft.util.Direction axis, float radians)
public SuperByteBuffer rotate(net.minecraft.util.math.vector.Quaternion q)
public SuperByteBuffer rotateCentered(net.minecraft.util.Direction axis, float radians)
public SuperByteBuffer rotateCentered(net.minecraft.util.math.vector.Quaternion q)
public SuperByteBuffer color(int r, int g, int b, int a)
public SuperByteBuffer color(int color)
public SuperByteBuffer color(Color c)
public SuperByteBuffer disableDiffuseDiv()
public SuperByteBuffer disableDiffuseMult()
public SuperByteBuffer shiftUV(SpriteShiftEntry entry)
public SuperByteBuffer shiftUVScrolling(SpriteShiftEntry entry, float scrollV)
public SuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize)
public SuperByteBuffer overlay()
public SuperByteBuffer overlay(int overlay)
public SuperByteBuffer light()
public SuperByteBuffer light(net.minecraft.util.math.vector.Matrix4f lightTransform)
public SuperByteBuffer light(int packedLightCoords)
public SuperByteBuffer light(net.minecraft.util.math.vector.Matrix4f lightTransform, int packedLightCoords)
public SuperByteBuffer hybridLight()
public SuperByteBuffer fullNormalTransform()
public SuperByteBuffer forEntityRender()
public boolean isEmpty()
public static int transformColor(byte component,
float scale)
public static int transformColor(int component,
float scale)
public static int maxLight(int packedLight1,
int packedLight2)