World.opIndex

Gets a block.

Return Value

Type: Block

an instance of block, which is never null

Examples

if(world[0, 0, 0] != Blocks.BEDROCK) {
   log("0,0,0 is not bedrock!");
}

Meta