public class ModelRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
boxName |
java.util.List<ModelRenderer> |
childModels |
java.util.List<ModelBox> |
cubeList |
boolean |
isHidden
Hides the model.
|
boolean |
mirror |
float |
offsetX |
float |
offsetY |
float |
offsetZ |
float |
rotateAngleX |
float |
rotateAngleY |
float |
rotateAngleZ |
float |
rotationPointX |
float |
rotationPointY |
float |
rotationPointZ |
boolean |
showModel |
float |
textureHeight
The size of the texture file's height in pixels.
|
float |
textureWidth
The size of the texture file's width in pixels.
|
Constructor and Description |
---|
ModelRenderer(ModelBase model) |
ModelRenderer(ModelBase model,
int texOffX,
int texOffY) |
ModelRenderer(ModelBase model,
java.lang.String boxNameIn) |
Modifier and Type | Method and Description |
---|---|
ModelRenderer |
addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth) |
ModelRenderer |
addBox(float p_178769_1_,
float p_178769_2_,
float p_178769_3_,
int p_178769_4_,
int p_178769_5_,
int p_178769_6_,
boolean p_178769_7_) |
void |
addBox(float p_78790_1_,
float p_78790_2_,
float p_78790_3_,
int width,
int height,
int depth,
float scaleFactor)
Creates a textured box.
|
ModelRenderer |
addBox(java.lang.String partName,
float offX,
float offY,
float offZ,
int width,
int height,
int depth) |
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 rendered
|
void |
render(float p_78785_1_) |
void |
renderWithRotation(float p_78791_1_) |
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.
|
public float textureWidth
public float textureHeight
public float rotationPointX
public float rotationPointY
public float rotationPointZ
public float rotateAngleX
public float rotateAngleY
public float rotateAngleZ
public boolean mirror
public boolean showModel
public boolean isHidden
public java.util.List<ModelBox> cubeList
public java.util.List<ModelRenderer> childModels
public final java.lang.String boxName
public float offsetX
public float offsetY
public float offsetZ
public ModelRenderer(ModelBase model, java.lang.String boxNameIn)
public ModelRenderer(ModelBase model)
public ModelRenderer(ModelBase model, int texOffX, int texOffY)
public void addChild(ModelRenderer renderer)
public ModelRenderer setTextureOffset(int x, int y)
public ModelRenderer addBox(java.lang.String partName, float offX, float offY, float offZ, int width, int height, int depth)
public ModelRenderer addBox(float offX, float offY, float offZ, int width, int height, int depth)
public ModelRenderer addBox(float p_178769_1_, float p_178769_2_, float p_178769_3_, int p_178769_4_, int p_178769_5_, int p_178769_6_, boolean p_178769_7_)
public void addBox(float p_78790_1_, float p_78790_2_, float p_78790_3_, int width, int height, int depth, float scaleFactor)
public void setRotationPoint(float rotationPointXIn, float rotationPointYIn, float rotationPointZIn)
public void render(float p_78785_1_)
public void renderWithRotation(float p_78791_1_)
public void postRender(float scale)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)