public class ModelRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelRenderer.ModelBox |
(package private) static class |
ModelRenderer.PositionTextureVertex |
(package private) static class |
ModelRenderer.TexturedQuad |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer> |
childModels |
private it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer.ModelBox> |
cubeList |
boolean |
mirror |
float |
rotateAngleX |
float |
rotateAngleY |
float |
rotateAngleZ |
float |
rotationPointX |
float |
rotationPointY |
float |
rotationPointZ |
boolean |
showModel |
private float |
textureHeight |
private int |
textureOffsetX |
private int |
textureOffsetY |
private float |
textureWidth |
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) |
private void |
addBox(int texOffX,
int texOffY,
float x,
float y,
float z,
float width,
float height,
float depth,
float deltaX,
float deltaY,
float deltaZ,
boolean mirorIn,
boolean p_228305_13_) |
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) |
private void |
doRender(MatrixStack.Entry matrixEntryIn,
IVertexBuilder bufferIn,
int packedLightIn,
int packedOverlayIn,
float red,
float green,
float blue,
float alpha) |
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) |
private float textureWidth
private 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
public boolean mirror
public boolean showModel
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer.ModelBox> cubeList
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer> childModels
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)
private void addBox(int texOffX, int texOffY, float x, float y, float z, float width, float height, float depth, float deltaX, float deltaY, float deltaZ, boolean mirorIn, boolean p_228305_13_)
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)
private void doRender(MatrixStack.Entry matrixEntryIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)
public ModelRenderer.ModelBox getRandomCube(java.util.Random randomIn)