Block.breathe

Boolean value indicating whether or not the upper block is air or isn't solid.

class Block
final
bool
breathe

Parameters

world World

the world there the block is placed

position BlockPosition

position in the world where the block is placed

checkFluid bool

boolean value indicating whether or not the fluid should be considered as a solid block

Examples

// farmlands become when dirt when they can't breathe
world[0, 0, 0] = Blocks.FARMLAND;

world[0, 1, 0] = Blocks.BEETROOT_BLOCK;
assert(world[0, 0, 0] == Blocks.FARMLAND);

world[0, 1, 0] = Blocks.DIRT;
assert(world[0, 0, 0] != Blocks.FARMLAND);

Meta