程序包 org.bukkit.util
接口 BlockTransformer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
BlockTransformer 用于修改由结构放置的方块。
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceTransformationState 允许访问原始方块状态以及转换开始前世界中转换位置处方块的状态。 -
方法概要
修饰符和类型方法说明transform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull BlockState current, @NotNull BlockTransformer.TransformationState state) 转换结构中的方块。
-
方法详细资料
-
transform
@NotNull @NotNull BlockState transform(@NotNull @NotNull LimitedRegion region, int x, int y, int z, @NotNull @NotNull BlockState current, @NotNull @NotNull BlockTransformer.TransformationState state) 转换结构中的方块。原文: Transforms a block in a structure. NOTE: The usage of
BlockData.createBlockState()can provide even more flexibility to return the exact block state you might want to return.- 参数:
region- 可访问区域x- 方块的 x 坐标y- 方块的 y 坐标z- 方块的 z 坐标current- 应放置的方块状态state- 此转换的状态- 返回:
- 新的方块状态
-