程序包 org.bukkit

接口 BlockChangeDelegate


@Deprecated public interface BlockChangeDelegate
已过时。
该API很少使用,基本上是出于实现自身功能的目的而创造的
一个用于处理方块改变的代理。以一个直接的接口

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

  • 方法概要

    修饰符和类型
    方法
    说明
    int
    已过时。
    Gets the height of the world.
    int
    getTypeId(int x, int y, int z)
    已过时。
    Magic value
    boolean
    isEmpty(int x, int y, int z)
    已过时。
    Checks if the specified block is empty (air) or not.
    boolean
    setRawTypeId(int x, int y, int z, int typeId)
    已过时。
    Magic value
    boolean
    setRawTypeIdAndData(int x, int y, int z, int typeId, int data)
    已过时。
    Magic value
    boolean
    setTypeId(int x, int y, int z, int typeId)
    已过时。
    Magic value
    boolean
    setTypeIdAndData(int x, int y, int z, int typeId, int data)
    已过时。
    Magic value
  • 方法详细资料

    • setRawTypeId

      @Deprecated boolean setRawTypeId(int x, int y, int z, int typeId)
      已过时。
      Magic value
      Set a block type at the specified coordinates without doing all world updates and notifications.

      It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.

      参数:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      typeId - New block ID
      返回:
      true if the block was set successfully
    • setRawTypeIdAndData

      @Deprecated boolean setRawTypeIdAndData(int x, int y, int z, int typeId, int data)
      已过时。
      Magic value
      Set a block type and data at the specified coordinates without doing all world updates and notifications.

      It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.

      参数:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      typeId - New block ID
      data - Block data
      返回:
      true if the block was set successfully
    • setTypeId

      @Deprecated boolean setTypeId(int x, int y, int z, int typeId)
      已过时。
      Magic value
      Set a block type at the specified coordinates.

      This method cannot call World.setRawTypeId, a full update is needed.

      参数:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      typeId - New block ID
      返回:
      true if the block was set successfully
    • setTypeIdAndData

      @Deprecated boolean setTypeIdAndData(int x, int y, int z, int typeId, int data)
      已过时。
      Magic value
      Set a block type and data at the specified coordinates.

      This method cannot call World.setRawTypeId, a full update is needed.

      参数:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      typeId - New block ID
      data - Block data
      返回:
      true if the block was set successfully
    • getTypeId

      @Deprecated int getTypeId(int x, int y, int z)
      已过时。
      Magic value
      Get the block type at the location.
      参数:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      返回:
      The block ID
    • 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.