程序包 org.bukkit.util

# 接口 EntityTransformer

函数接口:
  这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface @Experimental public interface EntityTransformer
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 region
      `x` - the x position of the entity
      `y` - the y position of the entity
      `z` - the z position of the entity
      `entity` - the entity
      `allowedToSpawn` - if the entity is allowed to spawn
    返回:
      `true` if the entity should be spawned otherwise `false`