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.String
boxName
java.util.List<ModelRenderer>
childModels
java.util.List<ModelBox>
cubeList
boolean
isHidden
boolean
mirror
float
offsetX
float
offsetY
float
offsetZ
float
rotateAngleX
float
rotateAngleY
float
rotateAngleZ
float
rotationPointX
float
rotationPointY
float
rotationPointZ
boolean
showModel
float
textureHeight
float
textureWidth
-
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 ModelRenderer
addBox(float offX, float offY, float offZ, int width, int height, int depth)
+ Creates a textured box.ModelRenderer
addBox(float parFloat1, float parFloat2, float parFloat3, int parInt1, int parInt2, int parInt3, boolean parFlag)
+ Creates a textured box.void
addBox(float width, float height, float depth, int scaleFactor, int parInt2, int parInt3, float parFloat4)
+ Creates a textured box.ModelRenderer
addBox(java.lang.String partName, float offX, float offY, float offZ, int width, int height, int depth)
+ Creates a textured box.void
addChild(ModelRenderer renderer)
+ Sets the current box's rotation points and rotation angles to another box.void
postRender(float scale)
+ Allows the changing of Angles after a box has been renderedvoid
render(float parFloat1)
void
renderWithRotation(float parFloat1)
void
setRotationPoint(float rotationPointXIn, float rotationPointYIn, float rotationPointZIn)
ModelRenderer
setTextureOffset(int x, int y)
ModelRenderer
setTextureSize(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.
-
-