Package com.jozufozu.flywheel.core.model
Class ModelTransformer.Params
java.lang.Object
com.jozufozu.flywheel.core.model.ModelTransformer.Params
- All Implemented Interfaces:
Rotate<ModelTransformer.Params>,Scale<ModelTransformer.Params>,Transform<ModelTransformer.Params>,Translate<ModelTransformer.Params>
- Enclosing class:
- ModelTransformer
public static class ModelTransformer.Params
extends Object
implements Transform<ModelTransformer.Params>
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintfinal com.mojang.math.Matrix4ffinal com.mojang.math.Matrix3fintintintbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor(byte r, byte g, byte b, byte a) color(int color) color(int r, int g, int b, int a) light(int packedLightCoords) voidload(ModelTransformer.Params from) voidmulNormal(com.mojang.math.Matrix3f normal) mulPose(com.mojang.math.Matrix4f pose) multiply(com.mojang.math.Quaternion quaternion) overlay(int overlay) scale(float pX, float pY, float pZ) 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.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 -
useParamColor
public boolean useParamColor -
r
public int r -
g
public int g -
b
public int b -
a
public int a -
spriteShiftFunc
-
overlay
public int overlay -
useParamLight
public boolean useParamLight -
packedLightCoords
public int packedLightCoords
-
-
Constructor Details
-
Params
public Params()
-
-
Method Details
-
loadDefault
public void loadDefault() -
load
-
color
-
color
-
color
-
shiftUV
-
overlay
-
light
-
multiply
- Specified by:
multiplyin interfaceRotate<ModelTransformer.Params>
-
scale
- Specified by:
scalein interfaceScale<ModelTransformer.Params>
-
translate
- Specified by:
translatein interfaceTranslate<ModelTransformer.Params>
-
mulPose
- Specified by:
mulPosein interfaceTransform<ModelTransformer.Params>
-
mulNormal
- Specified by:
mulNormalin interfaceTransform<ModelTransformer.Params>
-