public abstract class ModelBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<ModelRenderer> |
boxList |
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 p_78088_2_,
float p_78088_3_,
float p_78088_4_,
float p_78088_5_,
float p_78088_6_,
float scale)
Sets the models various rotation angles then renders the model.
|
void |
setLivingAnimations(EntityLivingBase entitylivingbaseIn,
float p_78086_2_,
float p_78086_3_,
float partialTickTime)
Used for easily adding entity-dependent animations.
|
void |
setModelAttributes(ModelBase model) |
void |
setRotationAngles(float p_78087_1_,
float p_78087_2_,
float p_78087_3_,
float p_78087_4_,
float p_78087_5_,
float p_78087_6_,
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 p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float scale)
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity entityIn)
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, 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)