コード例 #1
0
ファイル: Block.cs プロジェクト: hafewa/Fantasy-Project
    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);
    }