程序包 org.bukkit.util
接口 EntityTransformer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
EntityTransformer 用于修改由结构生成的实体。
-
方法概要
修饰符和类型方法说明booleantransform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn) 转换结构中的实体。
-
方法详细资料
-
transform
boolean transform(@NotNull @NotNull LimitedRegion region, int x, int y, int z, @NotNull @NotNull Entity entity, boolean allowedToSpawn) 转换结构中的实体。原文: Transforms a entity in a structure.
- 参数:
region- 可访问区域x- 实体的 x 坐标y- 实体的 y 坐标z- 实体的 z 坐标entity- 实体allowedToSpawn- 实体是否被允许生成- 返回:
true如果实体应该生成,否则false
-