public class ChainBuffer
extends java.lang.Object
| Constructor and Description |
|---|
ChainBuffer() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyChainSwingBuffer(net.minecraft.client.model.ModelRenderer... boxes)
Applies this buffer on the Y axis to the given array of model boxes.
|
void |
applyChainWaveBuffer(net.minecraft.client.model.ModelRenderer... boxes)
Applies this buffer on the X axis to the given array of model boxes.
|
void |
calculateChainSwingBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
net.minecraft.entity.EntityLivingBase entity)
Calculates the swing amounts for the given entity (Y axis)
|
void |
calculateChainSwingBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
float divisor,
net.minecraft.entity.EntityLivingBase entity)
Calculates the swing amounts for the given entity (Y axis)
|
void |
calculateChainWaveBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
net.minecraft.entity.EntityLivingBase entity)
Calculates the wave amounts for the given entity (X axis)
|
void |
calculateChainWaveBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
float divisor,
net.minecraft.entity.EntityLivingBase entity)
Calculates the wave amounts for the given entity (X axis)
|
void |
resetRotations()
Resets this ChainBuffer's rotations.
|
public void resetRotations()
public void calculateChainSwingBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
float divisor,
net.minecraft.entity.EntityLivingBase entity)
maxAngle - the furthest this ChainBuffer can swingbufferTime - the time it takes to swing this buffer in ticksangleDecrement - the angle to decrement by for each model piecedivisor - the amount to divide the swing amount byentity - the entity with this ChainBufferpublic void calculateChainWaveBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
float divisor,
net.minecraft.entity.EntityLivingBase entity)
maxAngle - the furthest this ChainBuffer can wavebufferTime - the time it takes to wave this buffer in ticksangleDecrement - the angle to decrement by for each model piecedivisor - the amount to divide the wave amount byentity - the entity with this ChainBufferpublic void calculateChainSwingBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
net.minecraft.entity.EntityLivingBase entity)
maxAngle - the furthest this ChainBuffer can swingbufferTime - the time it takes to swing this buffer in ticksangleDecrement - the angle to decrement by for each model pieceentity - the entity with this ChainBufferpublic void calculateChainWaveBuffer(float maxAngle,
int bufferTime,
float angleDecrement,
net.minecraft.entity.EntityLivingBase entity)
maxAngle - the furthest this ChainBuffer can wavebufferTime - the time it takes to wave this buffer in ticksangleDecrement - the angle to decrement by for each model pieceentity - the entity with this ChainBufferpublic void applyChainSwingBuffer(net.minecraft.client.model.ModelRenderer... boxes)
boxes - the box arraypublic void applyChainWaveBuffer(net.minecraft.client.model.ModelRenderer... boxes)
boxes - the box array