Class WavefrontObject
java.lang.Object
net.minecraft.client.model.Model
com.pixelmonmod.pixelmon.client.models.obj.WavefrontObject
public class WavefrontObject
extends net.minecraft.client.model.Model
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublefloatfloatfloatFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
ConstructorsConstructorDescriptionWavefrontObject(InputStream stream) WavefrontObject(InputStream stream, float scale) WavefrontObject(InputStream stream, float xScale, float yScale, float zScale) WavefrontObject(InputStream stream, float xScale, float yScale, float zScale, Vertex translation, Vertex rotation) WavefrontObject(InputStream stream, float scale, Vertex translation, Vertex rotation) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildVBO(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) voidparse(InputStream fileInput) voidrender(com.mojang.blaze3d.vertex.PoseStack PoseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay) protected voidrenderGroup(Group group, com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) voidrenderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, int color) voidsetCurrentGroup(Group currentGroup) voidsetCurrentMaterial(Material currentMaterial) voidsetMaterials(HashMap<String, Material> materials) voidsetNormals(ArrayList<Vertex> normals) voidsetTextures(ArrayList<TextureCoordinate> textures) voidsetVertices(ArrayList<Vertex> vertices) Methods inherited from class net.minecraft.client.model.Model
renderToBuffer, renderType
-
Field Details
-
radius
public double radius -
xScale
public float xScale -
yScale
public float yScale -
zScale
public float zScale -
translate
-
rotate
-
-
Constructor Details
-
WavefrontObject
-
WavefrontObject
-
WavefrontObject
-
WavefrontObject
-
WavefrontObject
public WavefrontObject(InputStream stream, float xScale, float yScale, float zScale, Vertex translation, Vertex rotation)
-
-
Method Details
-
parse
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack PoseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay) -
buildVBO
public void buildVBO(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) -
renderGroup
protected void renderGroup(Group group, com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) -
setMaterials
-
setTextures
-
getTextureList
-
setVertices
-
getVertices
-
setNormals
-
getNormals
-
getMaterials
-
getCurrentMaterial
-
setCurrentMaterial
-
getGroups
-
getGroupsDirectAccess
-
getCurrentGroup
-
setCurrentGroup
-
renderToBuffer
public void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, int color) - Specified by:
renderToBufferin classnet.minecraft.client.model.Model
-