Class ModelRenderer

java.lang.Object
net.minecraft.src.ModelRenderer

public class ModelRenderer extends Object
  • Field Details

    • textureWidth

      public float textureWidth
      The size of the texture file's width in pixels.
    • textureHeight

      public float textureHeight
      The size of the texture file's height in pixels.
    • rotationPointX

      public float rotationPointX
    • rotationPointY

      public float rotationPointY
    • rotationPointZ

      public float rotationPointZ
    • rotateAngleX

      public float rotateAngleX
    • rotateAngleY

      public float rotateAngleY
    • rotateAngleZ

      public float rotateAngleZ
    • mirror

      public boolean mirror
    • showModel

      public boolean showModel
    • isHidden

      public boolean isHidden
      Hides the model.
    • cubeList

      public List cubeList
    • childModels

      public List childModels
    • boxName

      public final String boxName
    • offsetX

      public float offsetX
    • offsetY

      public float offsetY
    • offsetZ

      public float offsetZ
  • Constructor Details

    • ModelRenderer

      public ModelRenderer(ModelBase par1ModelBase, String par2Str)
    • ModelRenderer

      public ModelRenderer(ModelBase par1ModelBase)
    • ModelRenderer

      public ModelRenderer(ModelBase par1ModelBase, int par2, int par3)
  • Method Details

    • addChild

      public void addChild(ModelRenderer par1ModelRenderer)
      Sets the current box's rotation points and rotation angles to another box.
    • setTextureOffset

      public ModelRenderer setTextureOffset(int par1, int par2)
    • addBox

      public ModelRenderer addBox(String par1Str, float par2, float par3, float par4, int par5, int par6, int par7)
    • addBox

      public ModelRenderer addBox(float par1, float par2, float par3, int par4, int par5, int par6)
    • addBox

      public void addBox(float par1, float par2, float par3, int par4, int par5, int par6, float par7)
      Creates a textured box. Args: originX, originY, originZ, width, height, depth, scaleFactor.
    • setRotationPoint

      public void setRotationPoint(float par1, float par2, float par3)
    • render

      public void render(float par1)
    • renderWithRotation

      public void renderWithRotation(float par1)
    • postRender

      public void postRender(float par1)
      Allows the changing of Angles after a box has been rendered
    • setTextureSize

      public ModelRenderer setTextureSize(int par1, int par2)
      Returns the model renderer with the new texture parameters.
    • renderWithScaleToBaseModel

      public void renderWithScaleToBaseModel(float par1, float fScaleX, float fScaleY, float fScaleZ)