public class ModelRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelRenderer.ModelBox |
Modifier and Type | Field and Description |
---|---|
boolean |
mirror |
float |
rotateAngleX |
float |
rotateAngleY |
float |
rotateAngleZ |
float |
rotationPointX |
float |
rotationPointY |
float |
rotationPointZ |
boolean |
showModel |
Constructor and Description |
---|
ModelRenderer(int textureWidthIn,
int textureHeightIn,
int textureOffsetXIn,
int textureOffsetYIn) |
ModelRenderer(Model model) |
ModelRenderer(Model model,
int texOffX,
int texOffY) |
Modifier and Type | Method and Description |
---|---|
ModelRenderer |
addBox(float x,
float y,
float z,
float width,
float height,
float depth) |
ModelRenderer |
addBox(float x,
float y,
float z,
float width,
float height,
float depth,
boolean mirrorIn) |
void |
addBox(float x,
float y,
float z,
float width,
float height,
float depth,
float delta) |
void |
addBox(float x,
float y,
float z,
float width,
float height,
float depth,
float delta,
boolean mirrorIn) |
void |
addBox(float x,
float y,
float z,
float width,
float height,
float depth,
float deltaX,
float deltaY,
float deltaZ) |
ModelRenderer |
addBox(java.lang.String partName,
float x,
float y,
float z,
int width,
int height,
int depth,
float delta,
int texX,
int texY) |
void |
addChild(ModelRenderer renderer) |
void |
copyModelAngles(ModelRenderer modelRendererIn) |
ModelRenderer.ModelBox |
getRandomCube(java.util.Random randomIn) |
void |
render(MatrixStack matrixStackIn,
IVertexBuilder bufferIn,
int packedLightIn,
int packedOverlayIn) |
void |
render(MatrixStack matrixStackIn,
IVertexBuilder bufferIn,
int packedLightIn,
int packedOverlayIn,
float red,
float green,
float blue,
float alpha) |
void |
setRotationPoint(float rotationPointXIn,
float rotationPointYIn,
float rotationPointZIn) |
ModelRenderer |
setTextureOffset(int x,
int y) |
ModelRenderer |
setTextureSize(int textureWidthIn,
int textureHeightIn) |
void |
translateRotate(MatrixStack matrixStackIn) |
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 ModelRenderer(Model model)
public ModelRenderer(Model model, int texOffX, int texOffY)
public ModelRenderer(int textureWidthIn, int textureHeightIn, int textureOffsetXIn, int textureOffsetYIn)
public void copyModelAngles(ModelRenderer modelRendererIn)
public void addChild(ModelRenderer renderer)
public ModelRenderer setTextureOffset(int x, int y)
public ModelRenderer addBox(java.lang.String partName, float x, float y, float z, int width, int height, int depth, float delta, int texX, int texY)
public ModelRenderer addBox(float x, float y, float z, float width, float height, float depth)
public ModelRenderer addBox(float x, float y, float z, float width, float height, float depth, boolean mirrorIn)
public void addBox(float x, float y, float z, float width, float height, float depth, float delta)
public void addBox(float x, float y, float z, float width, float height, float depth, float deltaX, float deltaY, float deltaZ)
public void addBox(float x, float y, float z, float width, float height, float depth, float delta, boolean mirrorIn)
public void setRotationPoint(float rotationPointXIn, float rotationPointYIn, float rotationPointZIn)
public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn)
public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha)
public void translateRotate(MatrixStack matrixStackIn)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)
public ModelRenderer.ModelBox getRandomCube(java.util.Random randomIn)