Class B3DModel.Parser
java.lang.Object
net.minecraftforge.client.model.b3d.B3DModel.Parser
- Enclosing class:
- B3DModel
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Deque<com.google.common.collect.Table<Integer,
Optional<B3DModel.Node<?>>, B3DModel.Key>> private final List<B3DModel.Brush>
private final ByteBuffer
private String
private int
private final com.google.common.collect.ImmutableMap.Builder<String,
B3DModel.Node<B3DModel.Mesh>> private B3DModel
private byte[]
private final List<B3DModel.Texture>
private static final int
private final List<B3DModel.Vertex>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanim()
private B3DModel
bb3d()
private List<org.apache.commons.lang3.tuple.Pair<B3DModel.Vertex,
Float>> bone()
private List<B3DModel.Brush>
brus()
private void
private void
private B3DModel.Brush
getBrush
(int brush) private B3DModel.Texture
getTexture
(int texture) private B3DModel.Vertex
getVertex
(int vertex) private boolean
private Map<Integer,
B3DModel.Key> keys()
private org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,
List<B3DModel.Face>> mesh()
private B3DModel.Node<?>
node()
parse()
private void
popLimit()
private void
private void
private Quaternion
readQuat()
private String
private void
skip()
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()
-