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
Modifier and TypeFieldDescriptiondouble
float
float
float
Fields inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Summary
ConstructorDescriptionWavefrontObject
(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 TypeMethodDescriptionvoid
buildVBO
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) void
parse
(InputStream fileInput) void
render
(com.mojang.blaze3d.vertex.PoseStack PoseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay) protected void
renderGroup
(Group group, com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer builder, int packedLight, int packedOverlay) void
renderToBuffer
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) void
setCurrentGroup
(Group currentGroup) void
setCurrentMaterial
(Material currentMaterial) void
setMaterials
(HashMap<String, Material> materials) void
setNormals
(ArrayList<Vertex> normals) void
setTextures
(ArrayList<TextureCoordinate> textures) void
setVertices
(ArrayList<Vertex> vertices) Methods inherited from class net.minecraft.client.model.Model
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
-
getBoudariesText
-
renderToBuffer
public void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) - Specified by:
renderToBuffer
in classnet.minecraft.client.model.Model
-