Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
Data.MineCraft.Pi.Block
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.
- 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
.
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
cobblestone :: BlockTypeSource
Block types.
Block types.
waterStationary :: BlockTypeSource
Block types.
lavaStationary :: BlockTypeSource
Block types.
lapisLazuliOre :: BlockTypeSource
Block types.
lapisLazuliBlock :: BlockTypeSource
Block types.
flowerYellow :: BlockTypeSource
Block types.
Block types.
mushroomBrown :: BlockTypeSource
Block types.
mushroomRed :: BlockTypeSource
Block types.
stoneSlabDouble :: BlockTypeSource
Block types.
Block types.
Block types.
Block types.
diamondBlock :: BlockTypeSource
Block types.
craftingTable :: BlockTypeSource
Block types.
furnaceInactive :: BlockTypeSource
Block types.
furnaceActive :: BlockTypeSource
Block types.
stairsCobblestone :: BlockTypeSource
Block types.
redstoneOre :: BlockTypeSource
Block types.
glowstoneBlock :: BlockTypeSource
Block types.
bedrockInvisible :: BlockTypeSource
Block types.
Block types.
glowingObsidian :: BlockTypeSource
Block types.
netherReactorCore :: BlockTypeSource
Block types.