程序包 org.bukkit.util
接口 EntityTransformer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
A EntityTransformer is used to modify entities that are spawned by structure.
-
方法概要
修饰符和类型方法说明boolean
transform
(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.
-
方法详细资料
-
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
- the accessible regionx
- the x position of the entityy
- the y position of the entityz
- the z position of the entityentity
- the entityallowedToSpawn
- if the entity is allowed to spawn- 返回:
true
if the entity should be spawned otherwisefalse
-