public class ModelRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ModelBase |
baseModel |
java.lang.String |
boxName |
java.util.List<ModelRenderer> |
childModels |
private boolean |
compiled |
java.util.List<ModelBox> |
cubeList |
private int |
displayList |
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 |
private int |
textureOffsetX |
private int |
textureOffsetY |
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) |
private void |
compileDisplayList(float scale) |
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
private int textureOffsetX
private int textureOffsetY
public float rotationPointX
public float rotationPointY
public float rotationPointZ
public float rotateAngleX
public float rotateAngleY
public float rotateAngleZ
private boolean compiled
private int displayList
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
private final ModelBase baseModel
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)
private void compileDisplayList(float scale)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)