Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
Useful data types. The block types should probably move to Data.MineCraft.Pi.Block.
Documentation
Represent the position of an entity. Note that we use
(X,Y,Z)
order rather than (X,Z,Y)
used by the MineCraft API.
This *should* be replaced by one of the "standard" Haskell 3D vector types.
Eq a => Eq (Pos a) | |
Show a => Show (Pos a) | |
ToMineCraft a => ToMineCraft (Pos a) | |
FromMineCraft a => FromMineCraft (Pos a) |
Represent a block.
We should probably combine BlockType
and BlockData
.
I have not looked to see whether it is worth using
an integer (as I currently do) or just an enumerated
type (e.g. if there are large ranges of the range 0 to 1023
that do not represent a valid block).
Use showBlock
for a more readable
way to convert to a String
.