Class OrientedInstance
java.lang.Object
com.jozufozu.flywheel.lib.instance.AbstractInstance
com.jozufozu.flywheel.lib.instance.ColoredLitInstance
com.jozufozu.flywheel.lib.instance.OrientedInstance
- All Implemented Interfaces:
Instance,FlatLit,Rotate<OrientedInstance>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloatfloatfinal org.joml.QuaternionfFields 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
ConstructorsConstructorDescriptionOrientedInstance(InstanceType<? extends OrientedInstance> type, InstanceHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionnudgePosition(float x, float y, float z) rotate(org.joml.Quaternionf quaternion) setPivot(float x, float y, float z) setPivot(net.minecraft.core.Vec3i pos) setPivot(net.minecraft.world.phys.Vec3 pos) setPivot(org.joml.Vector3f pos) setPosition(float x, float y, float z) setPosition(net.minecraft.core.Vec3i pos) setPosition(net.minecraft.world.phys.Vec3 pos) setPosition(org.joml.Vector3f pos) setRotation(float x, float y, float z, float w) setRotation(org.joml.Quaternionf q) 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.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, self
-
Field Details
-
posX
public float posX -
posY
public float posY -
posZ
public float posZ -
pivotX
public float pivotX -
pivotY
public float pivotY -
pivotZ
public float pivotZ -
rotation
public final org.joml.Quaternionf rotation
-
-
Constructor Details
-
OrientedInstance
-
-
Method Details
-
setPosition
-
setPosition
-
setPosition
-
setPosition
-
resetPosition
-
nudgePosition
-
setPivot
-
setPivot
-
setPivot
-
setPivot
-
setRotation
-
setRotation
-
resetRotation
-
rotate
- Specified by:
rotatein interfaceRotate<OrientedInstance>
-