public final class PartialPieceInfo
extends java.lang.Object
| Constructor and Description |
|---|
PartialPieceInfo(partial_piece_info p) |
| Modifier and Type | Method and Description |
|---|---|
int |
blocksInPiece()
The number of blocks in this piece.
|
int |
finished()
The number of blocks that are in the finished state.
|
int |
pieceIndex()
The index of the piece in question.
|
int |
requested()
The number of blocks that are in the requested state.
|
partial_piece_info |
swig() |
int |
writing()
The number of blocks that are in the writing state.
|
public PartialPieceInfo(partial_piece_info p)
p - the native objectpublic partial_piece_info swig()
public int pieceIndex()
blocksInPiece() is
the number of blocks in this particular piece. This number will
be the same for most pieces, but the last piece may have fewer
blocks than the standard pieces.public int blocksInPiece()
public int finished()
public int writing()
public int requested()