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 Details

    • radius

      public double radius
    • xScale

      public float xScale
    • yScale

      public float yScale
    • zScale

      public float zScale
    • translate

      public Vertex translate
    • rotate

      public Vertex rotate
  • Constructor Details

    • WavefrontObject

      public WavefrontObject(InputStream stream)
    • WavefrontObject

      public WavefrontObject(InputStream stream, float xScale, float yScale, float zScale)
    • WavefrontObject

      public WavefrontObject(InputStream stream, float scale)
    • WavefrontObject

      public WavefrontObject(InputStream stream, float scale, Vertex translation, Vertex rotation)
    • WavefrontObject

      public WavefrontObject(InputStream stream, float xScale, float yScale, float zScale, Vertex translation, Vertex rotation)
  • Method Details

    • parse

      public void parse(InputStream fileInput)
    • 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

      public void setMaterials(HashMap<String,Material> materials)
    • setTextures

      public void setTextures(ArrayList<TextureCoordinate> textures)
    • getTextureList

      public ArrayList<TextureCoordinate> getTextureList()
    • setVertices

      public void setVertices(ArrayList<Vertex> vertices)
    • getVertices

      public ArrayList<Vertex> getVertices()
    • setNormals

      public void setNormals(ArrayList<Vertex> normals)
    • getNormals

      public ArrayList<Vertex> getNormals()
    • getMaterials

      public HashMap<String,Material> getMaterials()
    • getCurrentMaterial

      public Material getCurrentMaterial()
    • setCurrentMaterial

      public void setCurrentMaterial(Material currentMaterial)
    • getGroups

      public ArrayList<Group> getGroups()
    • getGroupsDirectAccess

      public HashMap<String,Group> getGroupsDirectAccess()
    • getCurrentGroup

      public Group getCurrentGroup()
    • setCurrentGroup

      public void setCurrentGroup(Group currentGroup)
    • getBoudariesText

      public String 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 class net.minecraft.client.model.Model