Class ModelData
java.lang.Object
com.jozufozu.flywheel.api.InstanceData
com.jozufozu.flywheel.core.materials.BasicData
com.jozufozu.flywheel.core.materials.model.ModelData
- All Implemented Interfaces:
FlatLit<BasicData>,Rotate<ModelData>,Scale<ModelData>,Transform<ModelData>,Translate<ModelData>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.mojang.math.Matrix4ffinal com.mojang.math.Matrix3f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmulNormal(com.mojang.math.Matrix3f normal) mulPose(com.mojang.math.Matrix4f pose) multiply(com.mojang.math.Quaternion quaternion) scale(float pX, float pY, float pZ) Sets the transform matrices to be all zeros.setTransform(com.mojang.blaze3d.vertex.PoseStack stack) translate(double x, double y, double z) Methods inherited from class com.jozufozu.flywheel.core.materials.BasicData
getPackedLight, setBlockLight, setColor, setColor, setColor, setColor, setColor, setColor, setSkyLightMethods inherited from class com.jozufozu.flywheel.api.InstanceData
checkDirtyAndClear, delete, getOwner, isRemoved, markDirty, setOwnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.core.materials.FlatLit
updateLightMethods 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.Transform
rotateCentered, rotateCentered, transform, transformMethods inherited from interface com.jozufozu.flywheel.util.transform.Translate
centre, nudge, translate, translate, translate, translateAll, translateBack, translateBack, translateBack, translateX, translateY, translateZ, unCentre
-
Field Details
-
model
public final com.mojang.math.Matrix4f model -
normal
public final com.mojang.math.Matrix3f normal
-
-
Constructor Details
-
ModelData
public ModelData()
-
-
Method Details
-
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
-
multiply
-
scale
-
translate
-
mulPose
-
mulNormal
-