Package net.minecraft.client.model
Class ModelRenderer
- java.lang.Object
-
- net.minecraft.client.model.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 Summary
Fields Modifier and Type Field Description java.lang.StringboxNamejava.util.List<ModelRenderer>childModelsjava.util.List<ModelBox>cubeListbooleanisHiddenbooleanmirrorfloatoffsetXfloatoffsetYfloatoffsetZfloatrotateAngleXfloatrotateAngleYfloatrotateAngleZfloatrotationPointXfloatrotationPointYfloatrotationPointZbooleanshowModelfloattextureHeightfloattextureWidth
-
Constructor Summary
Constructors Constructor Description ModelRenderer(ModelBase model)ModelRenderer(ModelBase model, int texOffX, int texOffY)ModelRenderer(ModelBase model, java.lang.String boxNameIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelRendereraddBox(float offX, float offY, float offZ, int width, int height, int depth)+ Creates a textured box.ModelRendereraddBox(float parFloat1, float parFloat2, float parFloat3, int parInt1, int parInt2, int parInt3, boolean parFlag)+ Creates a textured box.voidaddBox(float width, float height, float depth, int scaleFactor, int parInt2, int parInt3, float parFloat4)+ Creates a textured box.ModelRendereraddBox(java.lang.String partName, float offX, float offY, float offZ, int width, int height, int depth)+ Creates a textured box.voidaddChild(ModelRenderer renderer)+ Sets the current box's rotation points and rotation angles to another box.voidpostRender(float scale)+ Allows the changing of Angles after a box has been renderedvoidrender(float parFloat1)voidrenderWithRotation(float parFloat1)voidsetRotationPoint(float rotationPointXIn, float rotationPointYIn, float rotationPointZIn)ModelRenderersetTextureOffset(int x, int y)ModelRenderersetTextureSize(int textureWidthIn, int textureHeightIn)+ Returns the model renderer with the new texture parameters.
-
-
-
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
-
childModels
public java.util.List<ModelRenderer> childModels
-
boxName
public final java.lang.String boxName
-
offsetX
public float offsetX
-
offsetY
public float offsetY
-
offsetZ
public float offsetZ
-
-
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.
-
-