Class ModelBase

    • 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
    • Constructor Detail

      • ModelBase

        public ModelBase()
    • 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.
      • 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)