程序包 org.bukkit
接口 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 valueboolean
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 valueboolean
setRawTypeIdAndData
(int x, int y, int z, int typeId, int data) 已过时。Magic valueboolean
setTypeId
(int x, int y, int z, int typeId) 已过时。Magic valueboolean
setTypeIdAndData
(int x, int y, int z, int typeId, int data) 已过时。Magic value
-
方法详细资料
-
setRawTypeId
已过时。Magic valueSet 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 coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block ID- 返回:
- true if the block was set successfully
-
setRawTypeIdAndData
已过时。Magic valueSet 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 coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block IDdata
- Block data- 返回:
- true if the block was set successfully
-
setTypeId
已过时。Magic valueSet a block type at the specified coordinates.This method cannot call World.setRawTypeId, a full update is needed.
- 参数:
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block ID- 返回:
- true if the block was set successfully
-
setTypeIdAndData
已过时。Magic valueSet a block type and data at the specified coordinates.This method cannot call World.setRawTypeId, a full update is needed.
- 参数:
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block IDdata
- Block data- 返回:
- true if the block was set successfully
-
getTypeId
已过时。Magic valueGet the block type at the location.- 参数:
x
- X coordinatey
- Y coordinatez
- 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 coordinatey
- Y coordinatez
- Z coordinate- 返回:
- True if the block is considered empty.
-