mcpi-0.0.0.4: Connect to MineCraft running on a Raspberry PI.

PortabilityHaskell 98
Stabilityexperimental
MaintainerDouglas Burke
Safe HaskellNone

Data.MineCraft.Pi.Types

Description

Useful data types. The block types should probably move to Data.MineCraft.Pi.Block.

Synopsis

Documentation

data Pos a Source

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.

Constructors

Pos 

Fields

_x :: a
 
_y :: a
 
_z :: a
 

Instances

Eq a => Eq (Pos a) 
Show a => Show (Pos a) 
ToMineCraft a => ToMineCraft (Pos a) 
FromMineCraft a => FromMineCraft (Pos a) 

newtype BlockType Source

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.

Constructors

BlockType Word16