Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
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.
- getBlock :: IPos -> MCPI BlockType
- getBlockData :: IPos -> MCPI (BlockType, BlockData)
- getBlocks :: IPos -> IPos -> MCPI [BlockType]
- setBlock :: IPos -> BlockType -> MCPI ()
- setBlockData :: IPos -> (BlockType, BlockData) -> MCPI ()
- setBlocks :: IPos -> IPos -> BlockType -> MCPI ()
- setBlocksData :: IPos -> IPos -> (BlockType, BlockData) -> MCPI ()
- showBlock :: BlockType -> String
- air :: BlockType
- stone :: BlockType
- grass :: BlockType
- dirt :: BlockType
- cobblestone :: BlockType
- woodPlanks :: BlockType
- sapling :: BlockType
- bedrock :: BlockType
- water :: BlockType
- waterStationary :: BlockType
- lava :: BlockType
- lavaStationary :: BlockType
- sand :: BlockType
- gravel :: BlockType
- goldOre :: BlockType
- ironOre :: BlockType
- coalOre :: BlockType
- wood :: BlockType
- leaves :: BlockType
- glass :: BlockType
- lapisLazuliOre :: BlockType
- lapisLazuliBlock :: BlockType
- sandstone :: BlockType
- bed :: BlockType
- cobweb :: BlockType
- grassTall :: BlockType
- wool :: BlockType
- flowerYellow :: BlockType
- flowerCyan :: BlockType
- mushroomBrown :: BlockType
- mushroomRed :: BlockType
- goldBlock :: BlockType
- ironBlock :: BlockType
- stoneSlabDouble :: BlockType
- stoneSlab :: BlockType
- brickBlock :: BlockType
- tnt :: BlockType
- bookshelf :: BlockType
- mossStone :: BlockType
- obsidian :: BlockType
- torch :: BlockType
- fire :: BlockType
- stairsWood :: BlockType
- chest :: BlockType
- diamondOre :: BlockType
- diamondBlock :: BlockType
- craftingTable :: BlockType
- farmland :: BlockType
- furnaceInactive :: BlockType
- furnaceActive :: BlockType
- doorWood :: BlockType
- ladder :: BlockType
- stairsCobblestone :: BlockType
- doorIron :: BlockType
- redstoneOre :: BlockType
- snow :: BlockType
- ice :: BlockType
- snowBlock :: BlockType
- cactus :: BlockType
- clay :: BlockType
- sugarCane :: BlockType
- fence :: BlockType
- glowstoneBlock :: BlockType
- bedrockInvisible :: BlockType
- stoneBrick :: BlockType
- glassPane :: BlockType
- melon :: BlockType
- fenceGate :: BlockType
- glowingObsidian :: BlockType
- netherReactorCore :: BlockType
Queries
getBlockData :: IPos -> MCPI (BlockType, BlockData)Source
What is the block at this position? See also getBlock
.
:: 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
cobblestone :: BlockTypeSource
A type of a block.
A type of a block.
waterStationary :: BlockTypeSource
A type of a block.
lavaStationary :: BlockTypeSource
A type of a block.
lapisLazuliOre :: BlockTypeSource
A type of a block.
lapisLazuliBlock :: BlockTypeSource
A type of a block.
flowerYellow :: BlockTypeSource
A type of a block.
A type of a block.
mushroomBrown :: BlockTypeSource
A type of a block.
mushroomRed :: BlockTypeSource
A type of a block.
stoneSlabDouble :: BlockTypeSource
A type of a block.
A type of a block.
A type of a block.
A type of a block.
diamondBlock :: BlockTypeSource
A type of a block.
craftingTable :: BlockTypeSource
A type of a block.
furnaceInactive :: BlockTypeSource
A type of a block.
furnaceActive :: BlockTypeSource
A type of a block.
stairsCobblestone :: BlockTypeSource
A type of a block.
redstoneOre :: BlockTypeSource
A type of a block.
glowstoneBlock :: BlockTypeSource
A type of a block.
bedrockInvisible :: BlockTypeSource
A type of a block.
A type of a block.
glowingObsidian :: BlockTypeSource
A type of a block.
netherReactorCore :: BlockTypeSource
A type of a block.