Class B3DModel.Node<K extends B3DModel.IKind<K>>
- java.lang.Object
-
- net.minecraftforge.client.model.b3d.B3DModel.Node<K>
-
- Enclosing class:
- B3DModel
public static class B3DModel.Node<K extends B3DModel.IKind<K>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private B3DModel.Animation
animation
private K
kind
private java.lang.String
name
private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>>
nodes
private B3DModel.Node<? extends B3DModel.IKind<?>>
parent
private Vector3f
pos
private Quaternion
rot
private Vector3f
scale
-
Constructor Summary
Constructors Constructor Description Node(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>>
buildNodeMap(java.util.List<B3DModel.Node<?>> nodes)
static <K extends B3DModel.IKind<K>>
B3DModel.Node<K>create(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
B3DModel.Animation
getAnimation()
K
getKind()
java.lang.String
getName()
com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>>
getNodes()
B3DModel.Node<? extends B3DModel.IKind<?>>
getParent()
Vector3f
getPos()
Quaternion
getRot()
Vector3f
getScale()
void
setAnimation(B3DModel.Animation animation)
void
setAnimation(org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> animData, com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key> keyData)
void
setParent(B3DModel.Node<? extends B3DModel.IKind<?>> parent)
java.lang.String
toString()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
pos
private final Vector3f pos
-
scale
private final Vector3f scale
-
rot
private final Quaternion rot
-
nodes
private final com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> nodes
-
animation
@Nullable private B3DModel.Animation animation
-
kind
private final K extends B3DModel.IKind<K> kind
-
parent
@Nullable private B3DModel.Node<? extends B3DModel.IKind<?>> parent
-
-
Constructor Detail
-
Node
public Node(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
-
-
Method Detail
-
create
public static <K extends B3DModel.IKind<K>> B3DModel.Node<K> create(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
-
setAnimation
public void setAnimation(B3DModel.Animation animation)
-
setAnimation
public void setAnimation(org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> animData, com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key> keyData)
-
buildNodeMap
private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> buildNodeMap(java.util.List<B3DModel.Node<?>> nodes)
-
getName
public java.lang.String getName()
-
getKind
public K getKind()
-
getPos
public Vector3f getPos()
-
getScale
public Vector3f getScale()
-
getRot
public Quaternion getRot()
-
getNodes
public com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> getNodes()
-
getAnimation
@Nullable public B3DModel.Animation getAnimation()
-
getParent
@Nullable public B3DModel.Node<? extends B3DModel.IKind<?>> getParent()
-
setParent
public void setParent(B3DModel.Node<? extends B3DModel.IKind<?>> parent)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-