Class TransformedInstance
java.lang.Object
com.jozufozu.flywheel.lib.instance.AbstractInstance
com.jozufozu.flywheel.lib.instance.ColoredLitInstance
com.jozufozu.flywheel.lib.instance.TransformedInstance
- All Implemented Interfaces:
Instance,FlatLit,Affine<TransformedInstance>,Rotate<TransformedInstance>,Scale<TransformedInstance>,Transform<TransformedInstance>,Translate<TransformedInstance>
public class TransformedInstance
extends ColoredLitInstance
implements Transform<TransformedInstance>
-
Field Summary
FieldsFields inherited from class com.jozufozu.flywheel.lib.instance.ColoredLitInstance
a, b, g, overlay, packedLight, rFields inherited from class com.jozufozu.flywheel.lib.instance.AbstractInstance
handle, type -
Constructor Summary
ConstructorsConstructorDescriptionTransformedInstance(InstanceType<? extends TransformedInstance> type, InstanceHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionmulNormal(org.joml.Matrix3f normal) mulPose(org.joml.Matrix4f pose) rotate(org.joml.Quaternionf quaternion) rotateAround(org.joml.Quaternionf quaternion, float x, float y, float z) scale(float x, float y, float z) Sets the transform matrices to be all zeros.setTransform(com.mojang.blaze3d.vertex.PoseStack stack) setTransform(com.mojang.blaze3d.vertex.PoseStack.Pose pose) translate(double x, double y, double z) Methods inherited from class com.jozufozu.flywheel.lib.instance.ColoredLitInstance
light, light, setColor, setColor, setColor, setColor, setColor, setOverlayMethods inherited from class com.jozufozu.flywheel.lib.instance.AbstractInstance
delete, handle, setChanged, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.lib.transform.Affine
rotateCentered, rotateCentered, rotateCenteredMethods inherited from interface com.jozufozu.flywheel.api.instance.Instance
delete, handle, setChanged, typeMethods inherited from interface com.jozufozu.flywheel.lib.transform.Rotate
rotate, rotate, rotate, rotate, rotate, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateToFace, rotateX, rotateXDegrees, rotateY, rotateYDegrees, rotateZ, rotateZDegrees, selfMethods inherited from interface com.jozufozu.flywheel.lib.transform.Scale
scale, scaleX, scaleY, scaleZMethods inherited from interface com.jozufozu.flywheel.lib.transform.Transform
transform, transform, transformMethods inherited from interface com.jozufozu.flywheel.lib.transform.Translate
center, nudge, translate, translate, translate, translate, translateBack, translateBack, translateBack, translateBack, translateBack, translateX, translateY, translateZ, uncenter
-
Field Details
-
model
public final org.joml.Matrix4f model -
normal
public final org.joml.Matrix3f normal
-
-
Constructor Details
-
TransformedInstance
-
-
Method Details
-
mulPose
- Specified by:
mulPosein interfaceTransform<TransformedInstance>
-
mulNormal
- Specified by:
mulNormalin interfaceTransform<TransformedInstance>
-
rotateAround
- Specified by:
rotateAroundin interfaceAffine<TransformedInstance>
-
scale
- Specified by:
scalein interfaceScale<TransformedInstance>
-
rotate
- Specified by:
rotatein interfaceRotate<TransformedInstance>
-
translate
- Specified by:
translatein interfaceTranslate<TransformedInstance>
-
setTransform
-
setTransform
-
setEmptyTransform
Sets the transform matrices to be all zeros.This will allow the GPU to quickly discard all geometry for this instance, effectively "turning it off".
-
loadIdentity
-