程序包 org.bukkit

# 接口 BlockChangeDelegate

public interface BlockChangeDelegate
一个用于处理方块改变的代理.

原文： A delegate for handling block changes. This serves as a direct interface between generation algorithms in the server implementation and utilizing code.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull BlockData`
  `getBlockData(int x, int y, int z)`
  Get the block data at the location.
  `int`
  `getHeight()`
  Gets the height of the world.
  `boolean`
  `isEmpty(int x, int y, int z)`
  Checks if the specified block is empty (air) or not.
  `boolean`
  `setBlockData(int x, int y, int z, @NotNull BlockData blockData)`
  Set a block data at the specified coordinates.

- ## 方法详细资料

  - ### setBlockData

    boolean setBlockData(int x, int y, int z, @NotNull @NotNull BlockData blockData)
    Set a block data at the specified coordinates.
    参数:
      `x` - X coordinate
      `y` - Y coordinate
      `z` - Z coordinate
      `blockData` - Block data
    返回:
      true if the block was set successfully

  - ### getBlockData

    @NotNull @NotNull BlockData getBlockData(int x, int y, int z)
    Get the block data at the location.
    参数:
      `x` - X coordinate
      `y` - Y coordinate
      `z` - Z coordinate
    返回:
      The block data

  - ### getHeight

    int getHeight()
    Gets the height of the world.
    返回:
      Height of the world

  - ### isEmpty

    boolean isEmpty(int x, int y, int z)
    Checks if the specified block is empty (air) or not.
    参数:
      `x` - X coordinate
      `y` - Y coordinate
      `z` - Z coordinate
    返回:
      True if the block is considered empty.