public class AdvancedModelBase
extends net.minecraft.client.model.ModelBase
| Constructor and Description |
|---|
AdvancedModelBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
bob(AdvancedModelRenderer box,
float speed,
float degree,
boolean bounce,
float f,
float f1)
Moves this box up and down (rotationPointY).
|
void |
chainFlap(AdvancedModelRenderer[] boxes,
float speed,
float degree,
double rootOffset,
float swing,
float swingAmount)
Flaps (rotates on the Z axis) the given model parts in a chain-like manner.
|
void |
chainSwing(AdvancedModelRenderer[] boxes,
float speed,
float degree,
double rootOffset,
float swing,
float swingAmount)
Swings (rotates on the Y axis) the given model parts in a chain-like manner.
|
void |
chainWave(AdvancedModelRenderer[] boxes,
float speed,
float degree,
double rootOffset,
float swing,
float swingAmount)
Waves (rotates on the X axis) the given model parts in a chain-like manner.
|
void |
faceTarget(float yaw,
float pitch,
float rotationDivisor,
AdvancedModelRenderer... boxes)
Rotates the given boxes to face a given target
|
void |
flap(AdvancedModelRenderer box,
float speed,
float degree,
boolean invert,
float offset,
float weight,
float flap,
float flapAmount)
Rotates this box up and down (rotateAngleZ).
|
float |
getMovementScale() |
float |
moveBox(float speed,
float degree,
boolean bounce,
float f,
float f1)
Returns a float that can be used to move boxes.
|
void |
resetToDefaultPose()
Sets the current pose to the previously set default pose
|
void |
setMovementScale(float movementScale)
Multiplies all rotation and position changes by this value
|
void |
swing(AdvancedModelRenderer box,
float speed,
float degree,
boolean invert,
float offset,
float weight,
float swing,
float swingAmount)
Rotates this box side to side (rotateAngleY).
|
void |
updateDefaultPose()
Sets the default pose to the current pose of this model
|
void |
walk(AdvancedModelRenderer box,
float speed,
float degree,
boolean invert,
float offset,
float weight,
float walk,
float walkAmount)
Rotates this box back and forth (rotateAngleX).
|
public void updateDefaultPose()
public void resetToDefaultPose()
public void faceTarget(float yaw,
float pitch,
float rotationDivisor,
AdvancedModelRenderer... boxes)
yaw - the yaw to facepitch - the pitch to facerotationDivisor - the amount to divide the rotation angles byboxes - the boxes to face the given targetpublic void chainSwing(AdvancedModelRenderer[] boxes, float speed, float degree, double rootOffset, float swing, float swingAmount)
boxes - the boxes to swingspeed - the speed to swing this atdegree - the amount to rotate this byrootOffset - the root rotation offsetswing - the swing rotationswingAmount - the swing amountpublic void chainWave(AdvancedModelRenderer[] boxes, float speed, float degree, double rootOffset, float swing, float swingAmount)
boxes - the boxes to wavespeed - the speed to wave this atdegree - the amount to rotate this byrootOffset - the root rotation offsetswing - the swing rotationswingAmount - the swing amountpublic void chainFlap(AdvancedModelRenderer[] boxes, float speed, float degree, double rootOffset, float swing, float swingAmount)
boxes - the boxes to flapspeed - the speed to flap this atdegree - the amount to rotate this byrootOffset - the root rotation offsetswing - the swing rotationswingAmount - the swing amountpublic float getMovementScale()
public void setMovementScale(float movementScale)
movementScale - the movement scalepublic void walk(AdvancedModelRenderer box, float speed, float degree, boolean invert, float offset, float weight, float walk, float walkAmount)
box - the box to animatespeed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingwalk - is the walked distancewalkAmount - is the walk speedpublic void flap(AdvancedModelRenderer box, float speed, float degree, boolean invert, float offset, float weight, float flap, float flapAmount)
box - the box to animatespeed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingflap - is the flapped distanceflapAmount - is the flap speedpublic void swing(AdvancedModelRenderer box, float speed, float degree, boolean invert, float offset, float weight, float swing, float swingAmount)
box - the box to animatespeed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingswing - is the swung distanceswingAmount - is the swing speedpublic void bob(AdvancedModelRenderer box, float speed, float degree, boolean bounce, float f, float f1)
box - the box to animatespeed - is how fast the animation runs;degree - is how far the box will move;bounce - will make the box bounce;f - is the walked distance;f1 - is the walk speed.public float moveBox(float speed,
float degree,
boolean bounce,
float f,
float f1)
speed - is how fast the animation runs;degree - is how far the box will move;bounce - will make the box bounce;f - is the walked distance;f1 - is the walk speed.