Package net.createmod.catnip.render
Class ShadeSeparatingSuperByteBuffer
java.lang.Object
net.createmod.catnip.render.ShadeSeparatingSuperByteBuffer
- 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
@ParametersAreNonnullByDefault
public class ShadeSeparatingSuperByteBuffer
extends Object
implements SuperByteBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.render.SuperByteBuffer
SuperByteBuffer.ShiftOutput, SuperByteBuffer.SpriteShiftFunc -
Field Summary
Fields inherited from interface dev.engine_room.flywheel.lib.transform.Translate
CENTER -
Constructor Summary
ConstructorsConstructorDescriptionShadeSeparatingSuperByteBuffer(TemplateMesh template) ShadeSeparatingSuperByteBuffer(TemplateMesh template, int[] shadeSwapVertices) ShadeSeparatingSuperByteBuffer(TemplateMesh template, int[] shadeSwapVertices, boolean invertFakeDiffuseNormal) -
Method Summary
Modifier and TypeMethodDescriptioncolor(float r, float g, float b, float a) color(int color) color(int r, int g, int b, int a) com.mojang.blaze3d.vertex.PoseStackbooleanisEmpty()light(int packedLight) mulNormal(org.joml.Matrix3fc normal) mulPose(org.joml.Matrix4fc pose) overlay(int overlay) popPose()pushPose()voidrenderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) reset()rotate(org.joml.Quaternionfc quaternion) scale(float factorX, float factorY, float factorZ) shiftUV(SpriteShiftEntry entry) shiftUVScrolling(SpriteShiftEntry entry, float scrollV) shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) translate(float x, float y, float z) useLevelLight(net.minecraft.world.level.BlockAndTintGetter level) Indicate that this buffer should look up the light coordinates in the level.useLevelLight(net.minecraft.world.level.BlockAndTintGetter level, org.joml.Matrix4f lightTransform) Indicate that this buffer should look up the light coordinates in the level.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
delete, rotateMethods inherited from interface dev.engine_room.flywheel.lib.transform.Transform
transform, transform, transformMethods inherited from interface dev.engine_room.flywheel.lib.transform.Translate
center, nudge, translate, translate, translate, translate, translate, translate, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateX, translateY, translateZ, uncenter
-
Constructor Details
-
ShadeSeparatingSuperByteBuffer
public ShadeSeparatingSuperByteBuffer(TemplateMesh template, int[] shadeSwapVertices, boolean invertFakeDiffuseNormal) -
ShadeSeparatingSuperByteBuffer
-
ShadeSeparatingSuperByteBuffer
-
-
Method Details
-
renderInto
public void renderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) - 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
-
scale
- Specified by:
scalein interfacedev.engine_room.flywheel.lib.transform.Scale<SuperByteBuffer>
-
rotate
- Specified by:
rotatein interfacedev.engine_room.flywheel.lib.transform.Rotate<SuperByteBuffer>
-
translate
- Specified by:
translatein interfacedev.engine_room.flywheel.lib.transform.Translate<SuperByteBuffer>
-
mulPose
- Specified by:
mulPosein interfacedev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>
-
mulNormal
- Specified by:
mulNormalin interfacedev.engine_room.flywheel.lib.transform.Transform<SuperByteBuffer>
-
pushPose
- Specified by:
pushPosein interfacedev.engine_room.flywheel.lib.transform.TransformStack<SuperByteBuffer>
-
popPose
- Specified by:
popPosein interfacedev.engine_room.flywheel.lib.transform.TransformStack<SuperByteBuffer>
-
color
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
disableDiffuse
- Specified by:
disableDiffusein interfaceSuperByteBuffer
-
shiftUV
- Specified by:
shiftUVin interfaceSuperByteBuffer
-
shiftUVScrolling
- Specified by:
shiftUVScrollingin interfaceSuperByteBuffer
-
shiftUVScrolling
- Specified by:
shiftUVScrollingin interfaceSuperByteBuffer
-
shiftUVtoSheet
public SuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) - Specified by:
shiftUVtoSheetin interfaceSuperByteBuffer
-
overlay
- Specified by:
overlayin interfaceSuperByteBuffer
-
light
- Specified by:
lightin interfaceSuperByteBuffer
-
useLevelLight
Description copied from interface:SuperByteBufferIndicate that this buffer should look up the light coordinates in the level.- Specified by:
useLevelLightin interfaceSuperByteBuffer
-
useLevelLight
public SuperByteBuffer useLevelLight(net.minecraft.world.level.BlockAndTintGetter level, org.joml.Matrix4f lightTransform) 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
-