public abstract class ModelBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<ModelRenderer> |
boxList
This is a list of all the boxes (ModelRenderer.class) in the current model.
|
boolean |
isChild |
boolean |
isRiding |
float |
swingProgress |
int |
textureHeight |
int |
textureWidth |
Constructor and Description |
---|
ModelBase() |
Modifier and Type | Method and Description |
---|---|
static void |
copyModelAngles(ModelRenderer source,
ModelRenderer dest)
Copies the angles from one object to another.
|
ModelRenderer |
getRandomModelBox(java.util.Random rand) |
TextureOffset |
getTextureOffset(java.lang.String partName) |
void |
render(Entity entityIn,
float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scale)
Sets the models various rotation angles then renders the model.
|
void |
setLivingAnimations(EntityLivingBase entitylivingbaseIn,
float limbSwing,
float limbSwingAmount,
float partialTickTime)
Used for easily adding entity-dependent animations.
|
void |
setModelAttributes(ModelBase model) |
void |
setRotationAngles(float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scaleFactor,
Entity entityIn)
Sets the model's various rotation angles.
|
protected void |
setTextureOffset(java.lang.String partName,
int x,
int y) |
public float swingProgress
public boolean isRiding
public boolean isChild
public java.util.List<ModelRenderer> boxList
public int textureWidth
public int textureHeight
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTickTime)
public ModelRenderer getRandomModelBox(java.util.Random rand)
protected void setTextureOffset(java.lang.String partName, int x, int y)
public TextureOffset getTextureOffset(java.lang.String partName)
public static void copyModelAngles(ModelRenderer source, ModelRenderer dest)
public void setModelAttributes(ModelBase model)