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

public abstract class ModelBase extends Object
  • Field Details

    • onGround

      public float onGround
    • isRiding

      public boolean isRiding
    • boxList

      public List 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

      public ModelRenderer getRandomModelBox(Random par1Random)
    • setTextureOffset

      protected void setTextureOffset(String par1Str, int par2, int par3)
    • getTextureOffset

      public TextureOffset getTextureOffset(String par1Str)