mcpi-0.0.0.4: 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.MineCraft.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.

Utilities

Block types

air :: BlockTypeSource

A type of a block.

stone :: BlockTypeSource

A type of a block.

grass :: BlockTypeSource

A type of a block.

dirt :: BlockTypeSource

A type of a block.

cobblestone :: BlockTypeSource

A type of a block.

woodPlanks :: BlockTypeSource

A type of a block.

sapling :: BlockTypeSource

A type of a block.

bedrock :: BlockTypeSource

A type of a block.

water :: BlockTypeSource

A type of a block.

waterStationary :: BlockTypeSource

A type of a block.

lava :: BlockTypeSource

A type of a block.

lavaStationary :: BlockTypeSource

A type of a block.

sand :: BlockTypeSource

A type of a block.

gravel :: BlockTypeSource

A type of a block.

goldOre :: BlockTypeSource

A type of a block.

ironOre :: BlockTypeSource

A type of a block.

coalOre :: BlockTypeSource

A type of a block.

wood :: BlockTypeSource

A type of a block.

leaves :: BlockTypeSource

A type of a block.

glass :: BlockTypeSource

A type of a block.

lapisLazuliOre :: BlockTypeSource

A type of a block.

lapisLazuliBlock :: BlockTypeSource

A type of a block.

sandstone :: BlockTypeSource

A type of a block.

bed :: BlockTypeSource

A type of a block.

cobweb :: BlockTypeSource

A type of a block.

grassTall :: BlockTypeSource

A type of a block.

wool :: BlockTypeSource

A type of a block.

flowerYellow :: BlockTypeSource

A type of a block.

flowerCyan :: BlockTypeSource

A type of a block.

mushroomBrown :: BlockTypeSource

A type of a block.

mushroomRed :: BlockTypeSource

A type of a block.

goldBlock :: BlockTypeSource

A type of a block.

ironBlock :: BlockTypeSource

A type of a block.

stoneSlabDouble :: BlockTypeSource

A type of a block.

stoneSlab :: BlockTypeSource

A type of a block.

brickBlock :: BlockTypeSource

A type of a block.

tnt :: BlockTypeSource

A type of a block.

bookshelf :: BlockTypeSource

A type of a block.

mossStone :: BlockTypeSource

A type of a block.

obsidian :: BlockTypeSource

A type of a block.

torch :: BlockTypeSource

A type of a block.

fire :: BlockTypeSource

A type of a block.

stairsWood :: BlockTypeSource

A type of a block.

chest :: BlockTypeSource

A type of a block.

diamondOre :: BlockTypeSource

A type of a block.

diamondBlock :: BlockTypeSource

A type of a block.

craftingTable :: BlockTypeSource

A type of a block.

farmland :: BlockTypeSource

A type of a block.

furnaceInactive :: BlockTypeSource

A type of a block.

furnaceActive :: BlockTypeSource

A type of a block.

doorWood :: BlockTypeSource

A type of a block.

ladder :: BlockTypeSource

A type of a block.

stairsCobblestone :: BlockTypeSource

A type of a block.

doorIron :: BlockTypeSource

A type of a block.

redstoneOre :: BlockTypeSource

A type of a block.

snow :: BlockTypeSource

A type of a block.

ice :: BlockTypeSource

A type of a block.

snowBlock :: BlockTypeSource

A type of a block.

cactus :: BlockTypeSource

A type of a block.

clay :: BlockTypeSource

A type of a block.

sugarCane :: BlockTypeSource

A type of a block.

fence :: BlockTypeSource

A type of a block.

glowstoneBlock :: BlockTypeSource

A type of a block.

bedrockInvisible :: BlockTypeSource

A type of a block.

stoneBrick :: BlockTypeSource

A type of a block.

glassPane :: BlockTypeSource

A type of a block.

melon :: BlockTypeSource

A type of a block.

fenceGate :: BlockTypeSource

A type of a block.

glowingObsidian :: BlockTypeSource

A type of a block.

netherReactorCore :: BlockTypeSource

A type of a block.