Class B3DModel.Mesh
- java.lang.Object
-
- net.minecraftforge.client.model.b3d.B3DModel.Mesh
-
- All Implemented Interfaces:
B3DModel.IKind<B3DModel.Mesh>
- Enclosing class:
- B3DModel
public static class B3DModel.Mesh extends java.lang.Object implements B3DModel.IKind<B3DModel.Mesh>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<B3DModel.Node<B3DModel.Bone>>
bones
private B3DModel.Brush
brush
private com.google.common.collect.ImmutableList<B3DModel.Face>
faces
private B3DModel.Node<B3DModel.Mesh>
parent
private com.google.common.collect.ImmutableMultimap<B3DModel.Vertex,org.apache.commons.lang3.tuple.Pair<java.lang.Float,B3DModel.Node<B3DModel.Bone>>>
weightMap
-
Constructor Summary
Constructors Constructor Description Mesh(org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,java.util.List<B3DModel.Face>> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<B3DModel.Face>
bake(java.util.function.Function<B3DModel.Node<?>,Matrix4f> animator)
com.google.common.collect.ImmutableSet<B3DModel.Node<B3DModel.Bone>>
getBones()
B3DModel.Brush
getBrush()
com.google.common.collect.ImmutableList<B3DModel.Face>
getFaces()
B3DModel.Node<B3DModel.Mesh>
getParent()
com.google.common.collect.ImmutableMultimap<B3DModel.Vertex,org.apache.commons.lang3.tuple.Pair<java.lang.Float,B3DModel.Node<B3DModel.Bone>>>
getWeightMap()
void
setParent(B3DModel.Node<B3DModel.Mesh> parent)
java.lang.String
toString()
-
-
-
Field Detail
-
parent
private B3DModel.Node<B3DModel.Mesh> parent
-
brush
private final B3DModel.Brush brush
-
faces
private final com.google.common.collect.ImmutableList<B3DModel.Face> faces
-
bones
private java.util.Set<B3DModel.Node<B3DModel.Bone>> bones
-
weightMap
private com.google.common.collect.ImmutableMultimap<B3DModel.Vertex,org.apache.commons.lang3.tuple.Pair<java.lang.Float,B3DModel.Node<B3DModel.Bone>>> weightMap
-
-
Constructor Detail
-
Mesh
public Mesh(org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,java.util.List<B3DModel.Face>> data)
-
-
Method Detail
-
getWeightMap
public com.google.common.collect.ImmutableMultimap<B3DModel.Vertex,org.apache.commons.lang3.tuple.Pair<java.lang.Float,B3DModel.Node<B3DModel.Bone>>> getWeightMap()
-
bake
public com.google.common.collect.ImmutableList<B3DModel.Face> bake(java.util.function.Function<B3DModel.Node<?>,Matrix4f> animator)
-
getBrush
public B3DModel.Brush getBrush()
-
getFaces
public com.google.common.collect.ImmutableList<B3DModel.Face> getFaces()
-
getBones
public com.google.common.collect.ImmutableSet<B3DModel.Node<B3DModel.Bone>> getBones()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setParent
public void setParent(B3DModel.Node<B3DModel.Mesh> parent)
- Specified by:
setParent
in interfaceB3DModel.IKind<B3DModel.Mesh>
-
getParent
public B3DModel.Node<B3DModel.Mesh> getParent()
- Specified by:
getParent
in interfaceB3DModel.IKind<B3DModel.Mesh>
-
-