Package net.minecraft.src
Class ModelBase
java.lang.Object
net.minecraft.src.ModelBase
- Direct Known Subclasses:
DireWolfModel,ModelBat,ModelBiped,ModelBlaze,ModelBoat,ModelBook,ModelChest,ModelChicken,ModelCreeper,ModelDragon,ModelEnderCrystal,ModelGhast,ModelHorse,ModelIronGolem,ModelLeashKnot,ModelMagmaCube,ModelMinecart,ModelOcelot,ModelQuadruped,ModelSign,ModelSilverfish,ModelSkeletonHead,ModelSlime,ModelSnowMan,ModelSpider,ModelSquid,ModelVillager,ModelWither,ModelWolf,SquidTentacleModel,WaterWheelModel,WindMillModel,WindMillVerticalFrameModel,WindMillVerticalSailsModel,WindMillVerticalShaftsModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis is a list of all the boxes (ModelRenderer.class) in the current model.booleanbooleanfloatintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRandomModelBox(Random par1Random) getTextureOffset(String par1Str) voidSets the models various rotation angles then renders the model.voidsetLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4) Used for easily adding entity-dependent animations.voidsetRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) Sets the model's various rotation angles.protected voidsetTextureOffset(String par1Str, int par2, int par3)
-
Field Details
-
onGround
public float onGround -
isRiding
public boolean isRiding -
boxList
This is a list of all the boxes (ModelRenderer.class) in the current model. -
isChild
public boolean isChild -
textureWidth
public int textureWidth -
textureHeight
public int textureHeight
-
-
Constructor Details
-
ModelBase
public ModelBase()
-
-
Method Details
-
render
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) Sets the models various rotation angles then renders the model. -
setRotationAngles
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) 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 par1EntityLivingBase, float par2, float par3, float par4) 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
-
setTextureOffset
-
getTextureOffset
-