Package net.createmod.catnip.render
Class ShadeSpearatingSuperByteBuffer
java.lang.Object
net.createmod.catnip.render.ShadeSpearatingSuperByteBuffer
- All Implemented Interfaces:
com.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.Scale<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>,com.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>,SuperByteBuffer
@ParametersAreNonnullByDefault
public class ShadeSpearatingSuperByteBuffer
extends Object
implements SuperByteBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.render.SuperByteBuffer
SuperByteBuffer.SpriteShiftFunc -
Constructor Summary
ConstructorsConstructorDescriptionShadeSpearatingSuperByteBuffer(com.jozufozu.flywheel.core.model.ShadeSeparatedBufferedData data) ShadeSpearatingSuperByteBuffer(ByteBuffer vertexBuffer, com.mojang.blaze3d.vertex.BufferBuilder.DrawState drawState) ShadeSpearatingSuperByteBuffer(ByteBuffer vertexBuffer, com.mojang.blaze3d.vertex.BufferBuilder.DrawState drawState, int unshadedStartVertex) -
Method Summary
Modifier and TypeMethodDescriptioncast(SuperByteBuffer buffer) Deprecated.color(int color) color(int r, int g, int b, int a) voiddelete()diffuseCalculator(com.jozufozu.flywheel.util.DiffuseLightCalculator diffuseCalculator) Prevents vertex colors from being multiplied by the diffuse value calculated from the final transformed normal vector.Transforms normals not only by the local matrix stack, but also by the passed matrix stack.com.mojang.blaze3d.vertex.PoseStackUses max light from calculated light (world light or custom light) and vertex light for the final light value.booleanisEmpty()light()Indicate that this buffer should look up the light coordinates in the current level.light(int packedLightCoords) light(com.mojang.math.Matrix4f lightTransform) Indicate that this buffer should look up the light coordinates in the current level.mulNormal(com.mojang.math.Matrix3f normal) mulPose(com.mojang.math.Matrix4f pose) multiply(com.mojang.math.Quaternion quaternion) overlay()overlay(int overlay) popPose()pushPose()voidrenderInto(com.mojang.blaze3d.vertex.PoseStack input, com.mojang.blaze3d.vertex.VertexConsumer builder) reset()rotateCentered(com.mojang.math.Quaternion q) rotateCentered(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 stack) static inttransformColor(byte component, float scale) static inttransformColor(int component, float scale) translate(double x, double y, double z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.util.transform.Rotate
multiply, multiplyRadians, rotate, rotate, rotateToFace, rotateX, rotateXRadians, rotateY, rotateYRadians, rotateZ, rotateZRadiansMethods inherited from interface com.jozufozu.flywheel.util.transform.Scale
scaleMethods inherited from interface net.createmod.catnip.render.SuperByteBuffer
color, forEntityRender, light, rotate, shiftUVScrollingMethods inherited from interface com.jozufozu.flywheel.util.transform.Transform
transformMethods inherited from interface com.jozufozu.flywheel.util.transform.Translate
centre, nudge, translate, translate, translate, translateAll, translateBack, translateBack, translateBack, translateX, translateY, translateZ, unCentre
-
Constructor Details
-
ShadeSpearatingSuperByteBuffer
public ShadeSpearatingSuperByteBuffer(ByteBuffer vertexBuffer, com.mojang.blaze3d.vertex.BufferBuilder.DrawState drawState, int unshadedStartVertex) -
ShadeSpearatingSuperByteBuffer
public ShadeSpearatingSuperByteBuffer(com.jozufozu.flywheel.core.model.ShadeSeparatedBufferedData data) -
ShadeSpearatingSuperByteBuffer
public ShadeSpearatingSuperByteBuffer(ByteBuffer vertexBuffer, com.mojang.blaze3d.vertex.BufferBuilder.DrawState drawState)
-
-
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
-
delete
public void delete()- Specified by:
deletein interfaceSuperByteBuffer
-
getTransforms
public com.mojang.blaze3d.vertex.PoseStack getTransforms()- Specified by:
getTransformsin interfaceSuperByteBuffer
-
translate
- Specified by:
translatein interfacecom.jozufozu.flywheel.util.transform.Translate<SuperByteBuffer>
-
multiply
- Specified by:
multiplyin interfacecom.jozufozu.flywheel.util.transform.Rotate<SuperByteBuffer>
-
scale
- Specified by:
scalein interfacecom.jozufozu.flywheel.util.transform.Scale<SuperByteBuffer>
-
pushPose
- Specified by:
pushPosein interfacecom.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
-
popPose
- Specified by:
popPosein interfacecom.jozufozu.flywheel.util.transform.TStack<SuperByteBuffer>
-
mulPose
- Specified by:
mulPosein interfacecom.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>
-
mulNormal
- Specified by:
mulNormalin interfacecom.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>
-
transform
- Specified by:
transformin interfacecom.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>
-
rotateCentered
public ShadeSpearatingSuperByteBuffer rotateCentered(net.minecraft.core.Direction axis, float radians) - Specified by:
rotateCenteredin interfacecom.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>
-
rotateCentered
- Specified by:
rotateCenteredin interfacecom.jozufozu.flywheel.util.transform.Transform<SuperByteBuffer>
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
color
- Specified by:
colorin interfaceSuperByteBuffer
-
disableDiffuse
Prevents vertex colors from being multiplied by the diffuse value calculated from the final transformed normal vector. Useful for entity rendering, when diffuse is applied automatically later.- Specified by:
disableDiffusein interfaceSuperByteBuffer
-
diffuseCalculator
public ShadeSpearatingSuperByteBuffer diffuseCalculator(com.jozufozu.flywheel.util.DiffuseLightCalculator diffuseCalculator) -
shiftUV
- Specified by:
shiftUVin interfaceSuperByteBuffer
-
shiftUVScrolling
public ShadeSpearatingSuperByteBuffer shiftUVScrolling(SpriteShiftEntry entry, float scrollU, float scrollV) - Specified by:
shiftUVScrollingin interfaceSuperByteBuffer
-
shiftUVtoSheet
public ShadeSpearatingSuperByteBuffer shiftUVtoSheet(SpriteShiftEntry entry, float uTarget, float vTarget, int sheetSize) - Specified by:
shiftUVtoSheetin interfaceSuperByteBuffer
-
overlay
- Specified by:
overlayin interfaceSuperByteBuffer
-
overlay
- Specified by:
overlayin interfaceSuperByteBuffer
-
light
Description copied from interface:SuperByteBufferIndicate that this buffer should look up the light coordinates in the current level.- Specified by:
lightin interfaceSuperByteBuffer
-
light
Description copied from interface:SuperByteBufferIndicate that this buffer should look up the light coordinates in the current level. Light Positions will be transformed by the passed Matrix before the lookup.- Specified by:
lightin interfaceSuperByteBuffer
-
light
- Specified by:
lightin interfaceSuperByteBuffer
-
hybridLight
Uses max light from calculated light (world light or custom light) and vertex light for the final light value. Ineffective if any other light method was not called.- Specified by:
hybridLightin interfaceSuperByteBuffer
-
fullNormalTransform
Transforms normals not only by the local matrix stack, but also by the passed matrix stack.- Specified by:
fullNormalTransformin interfaceSuperByteBuffer
-
cast
Deprecated. -
transformColor
public static int transformColor(byte component, float scale) -
transformColor
public static int transformColor(int component, float scale)
-