Package net.minecraft.client.model
Class ModelBase
- java.lang.Object
-
- net.minecraft.client.model.ModelBase
-
- Direct Known Subclasses:
ModelBanner
,ModelBat
,ModelBiped
,ModelBlaze
,ModelBoat
,ModelBook
,ModelChest
,ModelChicken
,ModelCreeper
,ModelDragon
,ModelEnderCrystal
,ModelEnderMite
,ModelGhast
,ModelGuardian
,ModelHorse
,ModelIronGolem
,ModelLeashKnot
,ModelMagmaCube
,ModelMinecart
,ModelOcelot
,ModelQuadruped
,ModelRabbit
,ModelSign
,ModelSilverfish
,ModelSkeletonHead
,ModelSlime
,ModelSnowMan
,ModelSpider
,ModelSquid
,ModelVillager
,ModelWither
,ModelWolf
public abstract class ModelBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ModelBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
copyModelAngles(ModelRenderer source, ModelRenderer dest)
+ Copies the angles from one object to another.ModelRenderer
getRandomModelBox(EaglercraftRandom rand)
TextureOffset
getTextureOffset(java.lang.String partName)
void
render(Entity var1, float var2, float var3, float var4, float var5, float var6, float var7)
+ Sets the models various rotation angles then renders the model.void
setLivingAnimations(EntityLivingBase var1, float var2, float var3, float var4)
+ Used for easily adding entity-dependent animations.void
setModelAttributes(ModelBase modelbase)
void
setRotationAngles(float var1, float var2, float var3, float var4, float var5, float var6, Entity var7)
+ Sets the model's various rotation angles.protected void
setTextureOffset(java.lang.String partName, int x, int y)
-
-
-
Field Detail
-
swingProgress
public float swingProgress
-
isRiding
public boolean isRiding
-
isChild
public boolean isChild
-
boxList
public java.util.List<ModelRenderer> boxList
+ This is a list of all the boxes (ModelRenderer.class) in the current model.
-
textureWidth
public int textureWidth
-
textureHeight
public int textureHeight
-
-
Method Detail
-
render
public void render(Entity var1, float var2, float var3, float var4, float var5, float var6, float var7)
+ Sets the models various rotation angles then renders the model.
-
setRotationAngles
public void setRotationAngles(float var1, float var2, float var3, float var4, float var5, float var6, Entity var7)
+ Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how "far" arms and legs can swing at most.
-
setLivingAnimations
public void setLivingAnimations(EntityLivingBase var1, float var2, float var3, float var4)
+ Used for easily adding entity-dependent animations. The second and third float params here are the same second and third as in the setRotationAngles method.
-
getRandomModelBox
public ModelRenderer getRandomModelBox(EaglercraftRandom rand)
-
setTextureOffset
protected void setTextureOffset(java.lang.String partName, int x, int y)
-
getTextureOffset
public TextureOffset getTextureOffset(java.lang.String partName)
-
copyModelAngles
public static void copyModelAngles(ModelRenderer source, ModelRenderer dest)
+ Copies the angles from one object to another. This is used when objects should stay aligned with each other, like the hair over a players head.
-
setModelAttributes
public void setModelAttributes(ModelBase modelbase)
-
-