Package net.createmod.catnip.render
Class DefaultSuperByteBuffer
java.lang.Object
net.createmod.catnip.render.DefaultSuperByteBuffer
- All Implemented Interfaces:
SuperByteBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.render.SuperByteBuffer
SuperByteBuffer.SpriteShiftFunc -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intprotected com.mojang.math.Matrix4fprotected intprotected intprotected booleanprotected booleanprotected SuperByteBuffer.SpriteShiftFuncprotected ByteBufferprotected com.mojang.blaze3d.vertex.PoseStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor(int color) color(int r, int g, int b, int a) protected bytegetA(int index) protected bytegetB(int index) protected intgetBufferPosition(int vertexIndex) protected bytegetG(int index) protected intgetLight(int index) protected bytegetNX(int index) protected bytegetNY(int index) protected bytegetNZ(int index) protected bytegetR(int index) com.mojang.blaze3d.vertex.PoseStackprotected floatgetU(int index) protected floatgetV(int index) protected floatgetX(int index) protected floatgetY(int index) protected floatgetZ(int index) booleanisEmpty()light(int packedLight) light(com.mojang.math.Matrix4f lightTransform) voidrenderInto(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer consumer) reset()rotate(net.minecraft.core.Direction axis, float radians) scale(float factorX, float factorY, float factorZ) shiftUV(SpriteShiftEntry entry) shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) transform(com.mojang.blaze3d.vertex.PoseStack ms) translate(float x, float y, float z) protected intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.createmod.catnip.render.SuperByteBuffer
color, light, rotate, rotateCentered, rotateCentered, scale, shiftUVScrolling, translate
-
Field Details
-
template
-
formatSize
protected int formatSize -
transforms
protected com.mojang.blaze3d.vertex.PoseStack transforms -
shouldColor
protected boolean shouldColor -
r
protected int r -
g
protected int g -
b
protected int b -
a
protected int a -
spriteShiftFunc
-
shouldLight
protected boolean shouldLight -
packedLightCoordinates
protected int packedLightCoordinates -
lightTransform
@Nullable protected com.mojang.math.Matrix4f lightTransform
-
-
Constructor Details
-
DefaultSuperByteBuffer
public DefaultSuperByteBuffer(com.mojang.blaze3d.vertex.BufferBuilder buf)
-
-
Method Details
-
renderInto
public void renderInto(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer consumer) - Specified by:
renderIntoin interfaceSuperByteBuffer
-
reset
- Specified by:
resetin interfaceSuperByteBuffer
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceSuperByteBuffer
-
getTransforms
public com.mojang.blaze3d.vertex.PoseStack getTransforms()- Specified by:
getTransformsin interfaceSuperByteBuffer
-
translate
- Specified by:
translatein interfaceSuperByteBuffer
-
rotate
- Specified by:
rotatein interfaceSuperByteBuffer
-
scale
- Specified by:
scalein interfaceSuperByteBuffer
-
transform
- Specified by:
transformin interfaceSuperByteBuffer
-
light
- Specified by:
lightin interfaceSuperByteBuffer
-
light
- Specified by:
lightin interfaceSuperByteBuffer
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
shiftUV
- Specified by:
shiftUVin interfaceSuperByteBuffer
-
shiftUVScrolling
public DefaultSuperByteBuffer shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) - Specified by:
shiftUVScrollingin interfaceSuperByteBuffer
-
shiftUVtoSheet
public DefaultSuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) - Specified by:
shiftUVtoSheetin interfaceSuperByteBuffer
-
vertexCount
protected int vertexCount() -
getBufferPosition
protected int getBufferPosition(int vertexIndex) -
getX
protected float getX(int index) -
getY
protected float getY(int index) -
getZ
protected float getZ(int index) -
getR
protected byte getR(int index) -
getG
protected byte getG(int index) -
getB
protected byte getB(int index) -
getA
protected byte getA(int index) -
getU
protected float getU(int index) -
getV
protected float getV(int index) -
getLight
protected int getLight(int index) -
getNX
protected byte getNX(int index) -
getNY
protected byte getNY(int index) -
getNZ
protected byte getNZ(int index)
-