public class ModelRenderer
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
ModelRenderer.ModelBox |
修飾子とタイプ | フィールドと説明 |
---|---|
boolean |
mirror |
float |
rotateAngleX |
float |
rotateAngleY |
float |
rotateAngleZ |
float |
rotationPointX |
float |
rotationPointY |
float |
rotationPointZ |
boolean |
showModel |
コンストラクタと説明 |
---|
ModelRenderer(int textureWidthIn,
int textureHeightIn,
int textureOffsetXIn,
int textureOffsetYIn) |
ModelRenderer(Model model) |
ModelRenderer(Model model,
int texOffX,
int texOffY) |
修飾子とタイプ | メソッドと説明 |
---|---|
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)
Sets the current box's rotation points and rotation angles to another box.
|
void |
copyModelAngles(ModelRenderer modelRendererIn) |
ModelRenderer.ModelBox |
getRandomCube(java.util.Random randomIn) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
int packedLightIn,
int packedOverlayIn) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.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)
Returns the model renderer with the new texture parameters.
|
void |
translateRotate(com.mojang.blaze3d.matrix.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(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha)
public void translateRotate(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn)
public ModelRenderer setTextureSize(int textureWidthIn, int textureHeightIn)
public ModelRenderer.ModelBox getRandomCube(java.util.Random randomIn)