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 |
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 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 offX,
float offY,
float offZ,
int width,
int height,
int depth,
boolean mirrored) |
void |
addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth,
float scaleFactor) |
ModelRenderer |
addBox(java.lang.String partName,
float offX,
float offY,
float offZ,
int width,
int height,
int depth) |
void |
addChild(ModelRenderer renderer) |
void |
postRender(float scale) |
void |
render(float scale) |
void |
renderWithRotation(float scale) |
void |
setRotationPoint(float rotationPointXIn,
float rotationPointYIn,
float rotationPointZIn) |
ModelRenderer |
setTextureOffset(int x,
int y) |
ModelRenderer |
setTextureSize(int textureWidthIn,
int textureHeightIn) |
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 offX, float offY, float offZ, int width, int height, int depth, boolean mirrored)
public void addBox(float offX, float offY, float offZ, int width, int height, int depth, float scaleFactor)
public void setRotationPoint(float rotationPointXIn, float rotationPointYIn, float rotationPointZIn)
public void render(float scale)
public void renderWithRotation(float scale)
public void postRender(float scale)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)