Package net.minecraft.src
Class ModelRenderer
java.lang.Object
net.minecraft.src.ModelRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringbooleanHides the model.booleanfloatfloatfloatfloatfloatfloatfloatfloatfloatbooleanfloatThe size of the texture file's height in pixels.floatThe size of the texture file's width in pixels. -
Constructor Summary
ConstructorsConstructorDescriptionModelRenderer(ModelBase par1ModelBase) ModelRenderer(ModelBase par1ModelBase, int par2, int par3) ModelRenderer(ModelBase par1ModelBase, String par2Str) -
Method Summary
Modifier and TypeMethodDescriptionaddBox(float par1, float par2, float par3, int par4, int par5, int par6) voidaddBox(float par1, float par2, float par3, int par4, int par5, int par6, float par7) Creates a textured box.voidaddChild(ModelRenderer par1ModelRenderer) Sets the current box's rotation points and rotation angles to another box.voidpostRender(float par1) Allows the changing of Angles after a box has been renderedvoidrender(float par1) voidrenderWithRotation(float par1) voidrenderWithScaleToBaseModel(float par1, float fScaleX, float fScaleY, float fScaleZ) voidsetRotationPoint(float par1, float par2, float par3) setTextureOffset(int par1, int par2) setTextureSize(int par1, int par2) Returns the model renderer with the new texture parameters.
-
Field Details
-
textureWidth
public float textureWidthThe size of the texture file's width in pixels. -
textureHeight
public float textureHeightThe 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 isHiddenHides the model. -
cubeList
-
childModels
-
boxName
-
offsetX
public float offsetX -
offsetY
public float offsetY -
offsetZ
public float offsetZ
-
-
Constructor Details
-
ModelRenderer
-
ModelRenderer
-
ModelRenderer
-
-
Method Details
-
addChild
Sets the current box's rotation points and rotation angles to another box. -
setTextureOffset
-
addBox
public ModelRenderer addBox(String par1Str, float par2, float par3, float par4, int par5, int par6, int par7) -
addBox
-
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
Returns the model renderer with the new texture parameters. -
renderWithScaleToBaseModel
public void renderWithScaleToBaseModel(float par1, float fScaleX, float fScaleY, float fScaleZ)
-