Class ModelRenderer


  • public class ModelRenderer
    extends java.lang.Object
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • textureWidth

        public float textureWidth
      • textureHeight

        public float textureHeight
      • 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
      • cubeList

        public java.util.List<ModelBox> cubeList
      • boxName

        public final java.lang.String boxName
      • offsetX

        public float offsetX
      • offsetY

        public float offsetY
      • offsetZ

        public float offsetZ
    • Constructor Detail

      • ModelRenderer

        public ModelRenderer​(ModelBase model,
                             java.lang.String boxNameIn)
      • ModelRenderer

        public ModelRenderer​(ModelBase model)
      • ModelRenderer

        public ModelRenderer​(ModelBase model,
                             int texOffX,
                             int texOffY)
    • Method Detail

      • addChild

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

        public ModelRenderer setTextureOffset​(int x,
                                              int y)
      • addBox

        public ModelRenderer addBox​(java.lang.String partName,
                                    float offX,
                                    float offY,
                                    float offZ,
                                    int width,
                                    int height,
                                    int depth)
        + Creates a textured box. Args: originX, originY, originZ, width, height, depth, scaleFactor.
      • addBox

        public ModelRenderer addBox​(float offX,
                                    float offY,
                                    float offZ,
                                    int width,
                                    int height,
                                    int depth)
        + Creates a textured box. Args: originX, originY, originZ, width, height, depth, scaleFactor.
      • addBox

        public ModelRenderer addBox​(float parFloat1,
                                    float parFloat2,
                                    float parFloat3,
                                    int parInt1,
                                    int parInt2,
                                    int parInt3,
                                    boolean parFlag)
        + Creates a textured box. Args: originX, originY, originZ, width, height, depth, scaleFactor.
      • addBox

        public void addBox​(float width,
                           float height,
                           float depth,
                           int scaleFactor,
                           int parInt2,
                           int parInt3,
                           float parFloat4)
        + Creates a textured box. Args: originX, originY, originZ, width, height, depth, scaleFactor.
      • setRotationPoint

        public void setRotationPoint​(float rotationPointXIn,
                                     float rotationPointYIn,
                                     float rotationPointZIn)
      • render

        public void render​(float parFloat1)
      • renderWithRotation

        public void renderWithRotation​(float parFloat1)
      • postRender

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

        public ModelRenderer setTextureSize​(int textureWidthIn,
                                            int textureHeightIn)
        + Returns the model renderer with the new texture parameters.