public class SmdModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<Bone> |
bones |
SmdAnimation |
currentAnim |
java.util.ArrayList<NormalizedFace> |
faces |
protected boolean |
isBodyGroupPart |
java.util.HashMap<java.lang.String,Bone> |
nameToBoneMapping |
ValveStudioModel |
owner |
Bone |
root |
java.util.List<DeformVertex> |
verts |
Modifier and Type | Method and Description |
---|---|
AnimFrame |
currentFrame() |
Bone |
getBoneByID(int id) |
Bone |
getBoneByName(java.lang.String name) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
com.mojang.blaze3d.vertex.IVertexBuilder buffer,
int packedLight,
int packedOverlay,
float partialTick,
float r,
float g,
float b,
float a) |
void |
resetVerts()
sets all the vertices in this model to their base, untransformed locations.
|
void |
setAnimation(SmdAnimation anim) |
public final ValveStudioModel owner
public java.util.ArrayList<NormalizedFace> faces
public java.util.List<DeformVertex> verts
public java.util.ArrayList<Bone> bones
public java.util.HashMap<java.lang.String,Bone> nameToBoneMapping
public SmdAnimation currentAnim
protected boolean isBodyGroupPart
public Bone root
public void setAnimation(SmdAnimation anim)
public Bone getBoneByID(int id)
id
- - The ID of the Bone contained within this model. (can be seen in the original SMD file)id
or null
if a Bone with said ID does not exist.public Bone getBoneByName(java.lang.String name)
name
- - The name of the Bone contained within this model. (can be seen in the original SMD file)name
or null
if a Bone with such a name does not exist.public AnimFrame currentFrame()
public void resetVerts()
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, com.mojang.blaze3d.vertex.IVertexBuilder buffer, int packedLight, int packedOverlay, float partialTick, float r, float g, float b, float a)