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

PortabilityHaskell 98
Stabilityexperimental
MaintainerDouglas Burke
Safe HaskellNone

Data.MineCraft.Pi.Block

Contents

Description

Block handling.

It probably makes sense for the block types in Data.MineCraftg.Pi.Types - namely BlockType and BlockData to be moved into this module.

See http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition) and http://www.minecraftwiki.net/wiki/Pi_Edition_version_history, although I have not cross-matched and verified all this information.

Synopsis

Queries

getBlock :: IPos -> MCPI BlockTypeSource

What is the block at this position? See also getBlockData.

getBlockData :: IPos -> MCPI (BlockType, BlockData)Source

What is the block at this position? See also getBlock.

getBlocksSource

Arguments

:: IPos

One corner of the cuboid.

-> IPos

Opposite corner.

-> MCPI [BlockType]

The order has not been specified.

Get the blocks in the cuboid defined by the start and end positions.

Commands

setBlock :: IPos -> BlockType -> MCPI ()Source

Change the block at the position. See also setBlockData.

setBlockData :: IPos -> (BlockType, BlockData) -> MCPI ()Source

Change the block at the position. See also setBlock.

setBlocks :: IPos -> IPos -> BlockType -> MCPI ()Source

Set all the blocks in the cuboid to the same type. See also setBlocksData.

setBlocksData :: IPos -> IPos -> (BlockType, BlockData) -> MCPI ()Source

Set all the blocks in the cuboid to the same type. See also setBlocks.

Blocks

air :: BlockTypeSource

Block types.

stone :: BlockTypeSource

Block types.

grass :: BlockTypeSource

Block types.

dirt :: BlockTypeSource

Block types.

woodPlanks :: BlockTypeSource

Block types.

sapling :: BlockTypeSource

Block types.

bedrock :: BlockTypeSource

Block types.

water :: BlockTypeSource

Block types.

lava :: BlockTypeSource

Block types.

sand :: BlockTypeSource

Block types.

gravel :: BlockTypeSource

Block types.

goldOre :: BlockTypeSource

Block types.

ironOre :: BlockTypeSource

Block types.

coalOre :: BlockTypeSource

Block types.

wood :: BlockTypeSource

Block types.

leaves :: BlockTypeSource

Block types.

glass :: BlockTypeSource

Block types.

sandstone :: BlockTypeSource

Block types.

bed :: BlockTypeSource

Block types.

cobweb :: BlockTypeSource

Block types.

grassTall :: BlockTypeSource

Block types.

wool :: BlockTypeSource

Block types.

flowerCyan :: BlockTypeSource

Block types.

goldBlock :: BlockTypeSource

Block types.

ironBlock :: BlockTypeSource

Block types.

stoneSlab :: BlockTypeSource

Block types.

brickBlock :: BlockTypeSource

Block types.

tnt :: BlockTypeSource

Block types.

bookshelf :: BlockTypeSource

Block types.

mossStone :: BlockTypeSource

Block types.

obsidian :: BlockTypeSource

Block types.

torch :: BlockTypeSource

Block types.

fire :: BlockTypeSource

Block types.

stairsWood :: BlockTypeSource

Block types.

chest :: BlockTypeSource

Block types.

diamondOre :: BlockTypeSource

Block types.

farmland :: BlockTypeSource

Block types.

doorWood :: BlockTypeSource

Block types.

ladder :: BlockTypeSource

Block types.

doorIron :: BlockTypeSource

Block types.

snow :: BlockTypeSource

Block types.

ice :: BlockTypeSource

Block types.

snowBlock :: BlockTypeSource

Block types.

cactus :: BlockTypeSource

Block types.

clay :: BlockTypeSource

Block types.

sugarCane :: BlockTypeSource

Block types.

fence :: BlockTypeSource

Block types.

stoneBrick :: BlockTypeSource

Block types.

glassPane :: BlockTypeSource

Block types.

melon :: BlockTypeSource

Block types.

fenceGate :: BlockTypeSource

Block types.