public class WavefrontObject
extends net.minecraft.client.renderer.model.Model
Modifier and Type | Field and Description |
---|---|
double |
radius |
Vertex |
rotate |
Vertex |
translate |
float |
xScale |
float |
yScale |
float |
zScale |
Constructor and Description |
---|
WavefrontObject(java.io.InputStream stream) |
WavefrontObject(java.io.InputStream stream,
float scale) |
WavefrontObject(java.io.InputStream stream,
float xScale,
float yScale,
float zScale) |
WavefrontObject(java.io.InputStream stream,
float xScale,
float yScale,
float zScale,
Vertex translation,
Vertex rotation) |
WavefrontObject(java.io.InputStream stream,
float scale,
Vertex translation,
Vertex rotation) |
Modifier and Type | Method and Description |
---|---|
void |
buildVBO(com.mojang.blaze3d.matrix.MatrixStack matrix,
com.mojang.blaze3d.vertex.IVertexBuilder builder,
int packedLight,
int packedOverlay) |
java.lang.String |
getBoudariesText() |
Group |
getCurrentGroup() |
Material |
getCurrentMaterial() |
java.util.ArrayList<Group> |
getGroups() |
java.util.HashMap<java.lang.String,Group> |
getGroupsDirectAccess() |
java.util.HashMap<java.lang.String,Material> |
getMaterials() |
java.util.ArrayList<Vertex> |
getNormals() |
java.util.ArrayList<TextureCoordinate> |
getTextureList() |
java.util.ArrayList<Vertex> |
getVertices() |
void |
parse(java.io.InputStream fileInput) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
com.mojang.blaze3d.vertex.IVertexBuilder buffer,
int packedLight,
int packedOverlay) |
protected void |
renderGroup(Group group,
com.mojang.blaze3d.matrix.MatrixStack matrix,
com.mojang.blaze3d.vertex.IVertexBuilder builder,
int packedLight,
int packedOverlay) |
void |
renderToBuffer(com.mojang.blaze3d.matrix.MatrixStack matrix,
com.mojang.blaze3d.vertex.IVertexBuilder buffer,
int packedLight,
int packedOverlay,
float red,
float green,
float blue,
float alpha) |
void |
setCurrentGroup(Group currentGroup) |
void |
setCurrentMaterial(Material currentMaterial) |
void |
setMaterials(java.util.HashMap<java.lang.String,Material> materials) |
void |
setNormals(java.util.ArrayList<Vertex> normals) |
void |
setTextures(java.util.ArrayList<TextureCoordinate> textures) |
void |
setVertices(java.util.ArrayList<Vertex> vertices) |
public double radius
public float xScale
public float yScale
public float zScale
public Vertex translate
public Vertex rotate
public WavefrontObject(java.io.InputStream stream)
public WavefrontObject(java.io.InputStream stream, float xScale, float yScale, float zScale)
public WavefrontObject(java.io.InputStream stream, float scale)
public WavefrontObject(java.io.InputStream stream, float scale, Vertex translation, Vertex rotation)
public void parse(java.io.InputStream fileInput)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, com.mojang.blaze3d.vertex.IVertexBuilder buffer, int packedLight, int packedOverlay)
public void buildVBO(com.mojang.blaze3d.matrix.MatrixStack matrix, com.mojang.blaze3d.vertex.IVertexBuilder builder, int packedLight, int packedOverlay)
protected void renderGroup(Group group, com.mojang.blaze3d.matrix.MatrixStack matrix, com.mojang.blaze3d.vertex.IVertexBuilder builder, int packedLight, int packedOverlay)
public void setMaterials(java.util.HashMap<java.lang.String,Material> materials)
public void setTextures(java.util.ArrayList<TextureCoordinate> textures)
public java.util.ArrayList<TextureCoordinate> getTextureList()
public void setVertices(java.util.ArrayList<Vertex> vertices)
public java.util.ArrayList<Vertex> getVertices()
public void setNormals(java.util.ArrayList<Vertex> normals)
public java.util.ArrayList<Vertex> getNormals()
public java.util.HashMap<java.lang.String,Material> getMaterials()
public Material getCurrentMaterial()
public void setCurrentMaterial(Material currentMaterial)
public java.util.ArrayList<Group> getGroups()
public java.util.HashMap<java.lang.String,Group> getGroupsDirectAccess()
public Group getCurrentGroup()
public void setCurrentGroup(Group currentGroup)
public java.lang.String getBoudariesText()
public void renderToBuffer(com.mojang.blaze3d.matrix.MatrixStack matrix, com.mojang.blaze3d.vertex.IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha)
renderToBuffer
in class net.minecraft.client.renderer.model.Model