Package net.createmod.catnip.render
Class DefaultSuperByteBuffer
java.lang.Object
net.createmod.catnip.render.DefaultSuperByteBuffer
- All Implemented Interfaces:
dev.engine_room.flywheel.lib.transform.Affine<SuperByteBuffer>,dev.engine_room.flywheel.lib.transform.Rotate<SuperByteBuffer>,dev.engine_room.flywheel.lib.transform.Scale<SuperByteBuffer>,dev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>,dev.engine_room.flywheel.lib.transform.TransformStack<SuperByteBuffer>,dev.engine_room.flywheel.lib.transform.Translate<SuperByteBuffer>,SuperByteBuffer
@Deprecated(forRemoval=true)
public class DefaultSuperByteBuffer
extends Object
implements SuperByteBuffer
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.render.SuperByteBuffer
SuperByteBuffer.ShiftOutput, SuperByteBuffer.SpriteShiftFunc -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected org.joml.Matrix4fDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected intDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected SuperByteBuffer.SpriteShiftFuncDeprecated, for removal: This API element is subject to removal in a future version.protected ByteBufferDeprecated, for removal: This API element is subject to removal in a future version.protected com.mojang.blaze3d.vertex.PoseStackDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected static final it.unimi.dsi.fastutil.longs.Long2IntMapDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface dev.engine_room.flywheel.lib.transform.Translate
CENTER -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSuperByteBuffer(com.mojang.blaze3d.vertex.MeshData data) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioncolor(int color) Deprecated, for removal: This API element is subject to removal in a future version.color(int r, int g, int b, int a) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetA(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetB(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected intgetBufferPosition(int vertexIndex) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetG(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected intgetLight(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetNX(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetNY(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetNZ(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected bytegetR(int index) Deprecated, for removal: This API element is subject to removal in a future version.com.mojang.blaze3d.vertex.PoseStackDeprecated, for removal: This API element is subject to removal in a future version.protected floatgetU(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected floatgetV(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected floatgetX(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected floatgetY(int index) Deprecated, for removal: This API element is subject to removal in a future version.protected floatgetZ(int index) Deprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.light(int packedLight) Deprecated, for removal: This API element is subject to removal in a future version.mulNormal(org.joml.Matrix3fc matrix3fc) Deprecated, for removal: This API element is subject to removal in a future version.mulPose(org.joml.Matrix4fc matrix4fc) Deprecated, for removal: This API element is subject to removal in a future version.overlay(int overlay) Deprecated, for removal: This API element is subject to removal in a future version.popPose()Deprecated, for removal: This API element is subject to removal in a future version.pushPose()Deprecated, for removal: This API element is subject to removal in a future version.voidrenderInto(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer consumer) Deprecated, for removal: This API element is subject to removal in a future version.reset()Deprecated, for removal: This API element is subject to removal in a future version.rotate(org.joml.Quaternionfc quaternionfc) Deprecated, for removal: This API element is subject to removal in a future version.scale(float factorX, float factorY, float factorZ) Deprecated, for removal: This API element is subject to removal in a future version.shiftUV(SpriteShiftEntry entry) Deprecated, for removal: This API element is subject to removal in a future version.shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) Deprecated, for removal: This API element is subject to removal in a future version.shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) Deprecated, for removal: This API element is subject to removal in a future version.transform(com.mojang.blaze3d.vertex.PoseStack ms) Deprecated, for removal: This API element is subject to removal in a future version.translate(double x, double y, double z) Deprecated, for removal: This API element is subject to removal in a future version.translate(float x, float y, float z) Deprecated, for removal: This API element is subject to removal in a future version.useLevelLight(net.minecraft.world.level.BlockAndTintGetter level) Deprecated, for removal: This API element is subject to removal in a future version.Indicate that this buffer should look up the light coordinates in the level.useLevelLight(net.minecraft.world.level.BlockAndTintGetter level, org.joml.Matrix4f lightTransform) Deprecated, for removal: This API element is subject to removal in a future version.Indicate that this buffer should look up the light coordinates in the level.protected intDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.transform.Affine
rotateAround, rotateAround, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateXCentered, rotateXCenteredDegrees, rotateYCentered, rotateYCenteredDegrees, rotateZCentered, rotateZCenteredDegreesMethods inherited from interface dev.engine_room.flywheel.lib.transform.Rotate
rotate, rotate, rotate, rotate, rotate, rotate, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateTo, rotateTo, rotateTo, rotateToFace, rotateX, rotateXDegrees, rotateY, rotateYDegrees, rotateZ, rotateZDegrees, selfMethods inherited from interface dev.engine_room.flywheel.lib.transform.Scale
scale, scale, scaleX, scaleY, scaleZMethods inherited from interface net.createmod.catnip.render.SuperByteBuffer
color, delete, rotate, shiftUVScrollingMethods inherited from interface dev.engine_room.flywheel.lib.transform.Transform
transform, transformMethods inherited from interface dev.engine_room.flywheel.lib.transform.Translate
center, nudge, translate, translate, translate, translate, translate, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateX, translateY, translateZ, uncenter
-
Field Details
-
template
Deprecated, for removal: This API element is subject to removal in a future version. -
formatSize
protected int formatSizeDeprecated, for removal: This API element is subject to removal in a future version. -
transforms
protected com.mojang.blaze3d.vertex.PoseStack transformsDeprecated, for removal: This API element is subject to removal in a future version. -
shouldColor
protected boolean shouldColorDeprecated, for removal: This API element is subject to removal in a future version. -
r
protected int rDeprecated, for removal: This API element is subject to removal in a future version. -
g
protected int gDeprecated, for removal: This API element is subject to removal in a future version. -
b
protected int bDeprecated, for removal: This API element is subject to removal in a future version. -
a
protected int aDeprecated, for removal: This API element is subject to removal in a future version. -
disableDiffuse
protected boolean disableDiffuseDeprecated, for removal: This API element is subject to removal in a future version. -
spriteShiftFunc
Deprecated, for removal: This API element is subject to removal in a future version. -
hasOverlay
protected boolean hasOverlayDeprecated, for removal: This API element is subject to removal in a future version. -
overlay
protected int overlayDeprecated, for removal: This API element is subject to removal in a future version. -
useWorldLight
protected boolean useWorldLightDeprecated, for removal: This API element is subject to removal in a future version. -
lightTransform
@Nullable protected org.joml.Matrix4f lightTransformDeprecated, for removal: This API element is subject to removal in a future version. -
hasCustomLight
protected boolean hasCustomLightDeprecated, for removal: This API element is subject to removal in a future version. -
packedLightCoordinates
protected int packedLightCoordinatesDeprecated, for removal: This API element is subject to removal in a future version. -
hybridLight
protected boolean hybridLightDeprecated, for removal: This API element is subject to removal in a future version. -
fullNormalTransform
protected boolean fullNormalTransformDeprecated, for removal: This API element is subject to removal in a future version. -
WORLD_LIGHT_CACHE
protected static final it.unimi.dsi.fastutil.longs.Long2IntMap WORLD_LIGHT_CACHEDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
DefaultSuperByteBuffer
public DefaultSuperByteBuffer(com.mojang.blaze3d.vertex.MeshData data) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
renderInto
public void renderInto(com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer consumer) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
renderIntoin interfaceSuperByteBuffer
-
reset
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
resetin interfaceSuperByteBuffer
-
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isEmptyin interfaceSuperByteBuffer
-
getTransforms
public com.mojang.blaze3d.vertex.PoseStack getTransforms()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getTransformsin interfaceSuperByteBuffer
-
translate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
translatein interfacedev.engine_room.flywheel.lib.transform.Translate<SuperByteBuffer>
-
translate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
translatein interfacedev.engine_room.flywheel.lib.transform.Translate<SuperByteBuffer>
-
scale
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
scalein interfacedev.engine_room.flywheel.lib.transform.Scale<SuperByteBuffer>
-
pushPose
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
pushPosein interfacedev.engine_room.flywheel.lib.transform.TransformStack<SuperByteBuffer>
-
popPose
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
popPosein interfacedev.engine_room.flywheel.lib.transform.TransformStack<SuperByteBuffer>
-
mulPose
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
mulPosein interfacedev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>
-
mulNormal
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
mulNormalin interfacedev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>
-
transform
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
transformin interfacedev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>
-
color
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
colorin interfaceSuperByteBuffer
-
color
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
colorin interfaceSuperByteBuffer
-
disableDiffuse
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
disableDiffusein interfaceSuperByteBuffer
-
shiftUV
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
shiftUVin interfaceSuperByteBuffer
-
shiftUVScrolling
public DefaultSuperByteBuffer shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
shiftUVScrollingin interfaceSuperByteBuffer
-
shiftUVtoSheet
public DefaultSuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
shiftUVtoSheetin interfaceSuperByteBuffer
-
overlay
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
overlayin interfaceSuperByteBuffer
-
useLevelLight
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SuperByteBufferIndicate that this buffer should look up the light coordinates in the level.- Specified by:
useLevelLightin interfaceSuperByteBuffer
-
useLevelLight
public DefaultSuperByteBuffer useLevelLight(net.minecraft.world.level.BlockAndTintGetter level, org.joml.Matrix4f lightTransform) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SuperByteBufferIndicate that this buffer should look up the light coordinates in the level. Light Positions will be transformed by the passed Matrix before the lookup.- Specified by:
useLevelLightin interfaceSuperByteBuffer
-
light
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lightin interfaceSuperByteBuffer
-
vertexCount
protected int vertexCount()Deprecated, for removal: This API element is subject to removal in a future version. -
getBufferPosition
protected int getBufferPosition(int vertexIndex) Deprecated, for removal: This API element is subject to removal in a future version. -
getX
protected float getX(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getY
protected float getY(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getZ
protected float getZ(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getR
protected byte getR(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getG
protected byte getG(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getB
protected byte getB(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getA
protected byte getA(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getU
protected float getU(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getV
protected float getV(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getLight
protected int getLight(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getNX
protected byte getNX(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getNY
protected byte getNY(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
getNZ
protected byte getNZ(int index) Deprecated, for removal: This API element is subject to removal in a future version. -
rotate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
rotatein interfacedev.engine_room.flywheel.lib.transform.Rotate<SuperByteBuffer>
-