程序包 org.bukkit.util

接口 EntityTransformer

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

@FunctionalInterface @Experimental public interface EntityTransformer
EntityTransformer 用于修改由结构生成的实体。
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    transform(@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