Example #1
0
    public Block getNeighbouringBlock(Direction direction)
    {
        World       world = getWorld();
        Location    neighbouringLocation = getNeighbouringLocation(direction);
        Chunk       chunk             = world.getChunk(neighbouringLocation);
        ChunkColumn chunkColumn       = chunk.getColumn(neighbouringLocation);
        Block       neighbouringBlock = chunkColumn.getBlock(neighbouringLocation.getBlockZ());

        return(neighbouringBlock);
    }