Class ModelRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.model.ModelRenderer
-
public class ModelRenderer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelRenderer.ModelBox
(package private) static class
ModelRenderer.PositionTextureVertex
(package private) static class
ModelRenderer.TexturedQuad
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer>
children
private it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer.ModelBox>
cubes
boolean
mirror
boolean
visible
float
x
float
xRot
private int
xTexOffs
private float
xTexSize
float
y
float
yRot
private int
yTexOffs
private float
yTexSize
float
z
float
zRot
-
Constructor Summary
Constructors Modifier Constructor Description private
ModelRenderer()
ModelRenderer(int p_i225949_1_, int p_i225949_2_, int p_i225949_3_, int p_i225949_4_)
ModelRenderer(Model p_i1173_1_)
ModelRenderer(Model p_i46358_1_, int p_i46358_2_, int p_i46358_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelRenderer
addBox(float p_228300_1_, float p_228300_2_, float p_228300_3_, float p_228300_4_, float p_228300_5_, float p_228300_6_)
ModelRenderer
addBox(float p_228304_1_, float p_228304_2_, float p_228304_3_, float p_228304_4_, float p_228304_5_, float p_228304_6_, boolean p_228304_7_)
void
addBox(float p_228301_1_, float p_228301_2_, float p_228301_3_, float p_228301_4_, float p_228301_5_, float p_228301_6_, float p_228301_7_)
void
addBox(float p_228303_1_, float p_228303_2_, float p_228303_3_, float p_228303_4_, float p_228303_5_, float p_228303_6_, float p_228303_7_, boolean p_228303_8_)
void
addBox(float p_228302_1_, float p_228302_2_, float p_228302_3_, float p_228302_4_, float p_228302_5_, float p_228302_6_, float p_228302_7_, float p_228302_8_, float p_228302_9_)
private void
addBox(int p_228305_1_, int p_228305_2_, float p_228305_3_, float p_228305_4_, float p_228305_5_, float p_228305_6_, float p_228305_7_, float p_228305_8_, float p_228305_9_, float p_228305_10_, float p_228305_11_, boolean p_228305_12_, boolean p_228305_13_)
ModelRenderer
addBox(java.lang.String p_217178_1_, float p_217178_2_, float p_217178_3_, float p_217178_4_, int p_217178_5_, int p_217178_6_, int p_217178_7_, float p_217178_8_, int p_217178_9_, int p_217178_10_)
void
addChild(ModelRenderer p_78792_1_)
private void
compile(MatrixStack.Entry p_228306_1_, IVertexBuilder p_228306_2_, int p_228306_3_, int p_228306_4_, float p_228306_5_, float p_228306_6_, float p_228306_7_, float p_228306_8_)
void
copyFrom(ModelRenderer p_217177_1_)
ModelRenderer
createShallowCopy()
ModelRenderer.ModelBox
getRandomCube(java.util.Random p_228310_1_)
void
render(MatrixStack p_228308_1_, IVertexBuilder p_228308_2_, int p_228308_3_, int p_228308_4_)
void
render(MatrixStack p_228309_1_, IVertexBuilder p_228309_2_, int p_228309_3_, int p_228309_4_, float p_228309_5_, float p_228309_6_, float p_228309_7_, float p_228309_8_)
void
setPos(float p_78793_1_, float p_78793_2_, float p_78793_3_)
ModelRenderer
setTexSize(int p_78787_1_, int p_78787_2_)
ModelRenderer
texOffs(int p_78784_1_, int p_78784_2_)
void
translateAndRotate(MatrixStack p_228307_1_)
-
-
-
Field Detail
-
xTexSize
private float xTexSize
-
yTexSize
private float yTexSize
-
xTexOffs
private int xTexOffs
-
yTexOffs
private int yTexOffs
-
x
public float x
-
y
public float y
-
z
public float z
-
xRot
public float xRot
-
yRot
public float yRot
-
zRot
public float zRot
-
mirror
public boolean mirror
-
visible
public boolean visible
-
cubes
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer.ModelBox> cubes
-
children
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelRenderer> children
-
-
Constructor Detail
-
ModelRenderer
public ModelRenderer(Model p_i1173_1_)
-
ModelRenderer
public ModelRenderer(Model p_i46358_1_, int p_i46358_2_, int p_i46358_3_)
-
ModelRenderer
public ModelRenderer(int p_i225949_1_, int p_i225949_2_, int p_i225949_3_, int p_i225949_4_)
-
ModelRenderer
private ModelRenderer()
-
-
Method Detail
-
createShallowCopy
public ModelRenderer createShallowCopy()
-
copyFrom
public void copyFrom(ModelRenderer p_217177_1_)
-
addChild
public void addChild(ModelRenderer p_78792_1_)
-
texOffs
public ModelRenderer texOffs(int p_78784_1_, int p_78784_2_)
-
addBox
public ModelRenderer addBox(java.lang.String p_217178_1_, float p_217178_2_, float p_217178_3_, float p_217178_4_, int p_217178_5_, int p_217178_6_, int p_217178_7_, float p_217178_8_, int p_217178_9_, int p_217178_10_)
-
addBox
public ModelRenderer addBox(float p_228300_1_, float p_228300_2_, float p_228300_3_, float p_228300_4_, float p_228300_5_, float p_228300_6_)
-
addBox
public ModelRenderer addBox(float p_228304_1_, float p_228304_2_, float p_228304_3_, float p_228304_4_, float p_228304_5_, float p_228304_6_, boolean p_228304_7_)
-
addBox
public void addBox(float p_228301_1_, float p_228301_2_, float p_228301_3_, float p_228301_4_, float p_228301_5_, float p_228301_6_, float p_228301_7_)
-
addBox
public void addBox(float p_228302_1_, float p_228302_2_, float p_228302_3_, float p_228302_4_, float p_228302_5_, float p_228302_6_, float p_228302_7_, float p_228302_8_, float p_228302_9_)
-
addBox
public void addBox(float p_228303_1_, float p_228303_2_, float p_228303_3_, float p_228303_4_, float p_228303_5_, float p_228303_6_, float p_228303_7_, boolean p_228303_8_)
-
addBox
private void addBox(int p_228305_1_, int p_228305_2_, float p_228305_3_, float p_228305_4_, float p_228305_5_, float p_228305_6_, float p_228305_7_, float p_228305_8_, float p_228305_9_, float p_228305_10_, float p_228305_11_, boolean p_228305_12_, boolean p_228305_13_)
-
setPos
public void setPos(float p_78793_1_, float p_78793_2_, float p_78793_3_)
-
render
public void render(MatrixStack p_228308_1_, IVertexBuilder p_228308_2_, int p_228308_3_, int p_228308_4_)
-
render
public void render(MatrixStack p_228309_1_, IVertexBuilder p_228309_2_, int p_228309_3_, int p_228309_4_, float p_228309_5_, float p_228309_6_, float p_228309_7_, float p_228309_8_)
-
translateAndRotate
public void translateAndRotate(MatrixStack p_228307_1_)
-
compile
private void compile(MatrixStack.Entry p_228306_1_, IVertexBuilder p_228306_2_, int p_228306_3_, int p_228306_4_, float p_228306_5_, float p_228306_6_, float p_228306_7_, float p_228306_8_)
-
setTexSize
public ModelRenderer setTexSize(int p_78787_1_, int p_78787_2_)
-
getRandomCube
public ModelRenderer.ModelBox getRandomCube(java.util.Random p_228310_1_)
-
-