Class B3DModel.Parser
java.lang.Object
net.minecraftforge.client.model.b3d.B3DModel.Parser
- Enclosing class:
- B3DModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<com.google.common.collect.Table<Integer,Optional<B3DModel.Node<?>>, B3DModel.Key>> private final List<B3DModel.Brush>private final ByteBufferprivate Stringprivate intprivate final com.google.common.collect.ImmutableMap.Builder<String,B3DModel.Node<B3DModel.Mesh>> private B3DModelprivate byte[]private final List<B3DModel.Texture>private static final intprivate final List<B3DModel.Vertex> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanim()private B3DModelbb3d()private List<org.apache.commons.lang3.tuple.Pair<B3DModel.Vertex,Float>> bone()private List<B3DModel.Brush>brus()private voidprivate voidprivate B3DModel.BrushgetBrush(int brush) private B3DModel.TexturegetTexture(int texture) private B3DModel.VertexgetVertex(int vertex) private booleanprivate Map<Integer,B3DModel.Key> keys()private org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,List<B3DModel.Face>> mesh()private B3DModel.Node<?>node()parse()private voidpopLimit()private voidprivate voidprivate QuaternionreadQuat()private Stringprivate voidskip()private List<B3DModel.Texture>texs()private List<B3DModel.Face>tris()private List<B3DModel.Vertex>vrts()
-
Field Details
-
version
private static final int version- See Also:
-
buf
-
tag
private byte[] tag -
length
private int length -
dump
-
res
-
textures
-
brushes
-
vertices
-
meshes
private final com.google.common.collect.ImmutableMap.Builder<String,B3DModel.Node<B3DModel.Mesh>> meshes -
limitStack
-
animations
private final Deque<com.google.common.collect.Table<Integer,Optional<B3DModel.Node<?>>, animationsB3DModel.Key>>
-
-
Constructor Details
-
Parser
- Throws:
IOException
-
-
Method Details
-
dump
-
parse
- Throws:
IOException
-
getTexture
-
getBrush
- Throws:
IOException
-
getVertex
- Throws:
IOException
-
readHeader
- Throws:
IOException
-
isChunk
- Throws:
IOException
-
chunk
- Throws:
IOException
-
readString
- Throws:
IOException
-
pushLimit
private void pushLimit() -
popLimit
private void popLimit() -
bb3d
- Throws:
IOException
-
texs
- Throws:
IOException
-
brus
- Throws:
IOException
-
vrts
- Throws:
IOException
-
tris
- Throws:
IOException
-
mesh
private org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,List<B3DModel.Face>> mesh() throws IOException- Throws:
IOException
-
bone
- Throws:
IOException
-
keys
- Throws:
IOException
-
anim
- Throws:
IOException
-
node
- Throws:
IOException
-
readQuat
-
skip
private void skip()
-