Class TransformedInstance
java.lang.Object
dev.engine_room.flywheel.lib.instance.AbstractInstance
dev.engine_room.flywheel.lib.instance.ColoredLitInstance
dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
dev.engine_room.flywheel.lib.instance.TransformedInstance
- All Implemented Interfaces:
Instance,FlatLit,Affine<TransformedInstance>,Rotate<TransformedInstance>,Scale<TransformedInstance>,Translate<TransformedInstance>
public class TransformedInstance
extends ColoredLitOverlayInstance
implements Affine<TransformedInstance>
-
Field Summary
FieldsFields inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
overlayFields inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitInstance
alpha, blue, green, light, redFields inherited from class dev.engine_room.flywheel.lib.instance.AbstractInstance
handle, type -
Constructor Summary
ConstructorsConstructorDescriptionTransformedInstance(InstanceType<? extends TransformedInstance> type, InstanceHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionmul(com.mojang.blaze3d.vertex.PoseStack stack) mul(com.mojang.blaze3d.vertex.PoseStack.Pose other) mul(org.joml.Matrix4fc other) rotate(float radians, float axisX, float axisY, float axisZ) rotate(org.joml.AxisAngle4f axisAngle) rotate(org.joml.Quaternionfc quaternion) rotateAround(org.joml.Quaternionfc quaternion, float x, float y, float z) rotateCentered(float radians, float axisX, float axisY, float axisZ) rotateX(float radians) rotateXCentered(float radians) rotateY(float radians) rotateYCentered(float radians) rotateZ(float radians) rotateZCentered(float radians) scale(float x, float y, float z) setTransform(com.mojang.blaze3d.vertex.PoseStack stack) setTransform(com.mojang.blaze3d.vertex.PoseStack.Pose pose) setTransform(org.joml.Matrix4fc pose) Sets the transform matrices to be all zeros.translate(float x, float y, float z) Methods inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
overlayMethods inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitInstance
color, color, color, color, color, color, colorArgb, colorRgb, lightMethods inherited from class dev.engine_room.flywheel.lib.instance.AbstractInstance
delete, handle, setChanged, setVisible, typeMethods 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, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateXCenteredDegrees, rotateYCenteredDegrees, rotateZCenteredDegreesMethods inherited from interface dev.engine_room.flywheel.api.instance.Instance
delete, handle, setChanged, setVisible, typeMethods inherited from interface dev.engine_room.flywheel.lib.transform.Rotate
rotate, rotate, rotate, rotate, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateTo, rotateTo, rotateTo, rotateToFace, rotateXDegrees, rotateYDegrees, rotateZDegrees, selfMethods inherited from interface dev.engine_room.flywheel.lib.transform.Scale
scale, scale, scaleX, scaleY, scaleZMethods 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
-
Field Details
-
pose
public final org.joml.Matrix4f pose
-
-
Constructor Details
-
TransformedInstance
-
-
Method Details
-
translate
- Specified by:
translatein interfaceTranslate<TransformedInstance>
-
rotate
- Specified by:
rotatein interfaceRotate<TransformedInstance>
-
scale
- Specified by:
scalein interfaceScale<TransformedInstance>
-
mul
-
mul
-
mul
-
setTransform
-
setTransform
-
setTransform
-
setIdentityTransform
-
setZeroTransform
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".
-
rotateAround
public TransformedInstance rotateAround(org.joml.Quaternionfc quaternion, float x, float y, float z) - Specified by:
rotateAroundin interfaceAffine<TransformedInstance>
-
rotateCentered
- Specified by:
rotateCenteredin interfaceAffine<TransformedInstance>
-
rotateXCentered
- Specified by:
rotateXCenteredin interfaceAffine<TransformedInstance>
-
rotateYCentered
- Specified by:
rotateYCenteredin interfaceAffine<TransformedInstance>
-
rotateZCentered
- Specified by:
rotateZCenteredin interfaceAffine<TransformedInstance>
-
rotate
- Specified by:
rotatein interfaceRotate<TransformedInstance>
-
rotate
- Specified by:
rotatein interfaceRotate<TransformedInstance>
-
rotateX
- Specified by:
rotateXin interfaceRotate<TransformedInstance>
-
rotateY
- Specified by:
rotateYin interfaceRotate<TransformedInstance>
-
rotateZ
- Specified by:
rotateZin interfaceRotate<TransformedInstance>
-