# 接口的使用
org.bukkit.util.BlockTransformer

使用BlockTransformer的程序包
程序包
说明
org.bukkit.event.world
与`世界`状态和变化有关的`事件`.
org.bukkit.structure
Classes related to creating or using `structures` without creating `Structure blocks` in the world.

- ## org.bukkit.event.world中BlockTransformer的使用

  返回BlockTransformer的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@Nullable BlockTransformer`
  AsyncStructureGenerateEvent.`getBlockTransformer(@NotNull NamespacedKey key)`
  Gets a block transformer by key.
  返回变量类型为BlockTransformer的类型的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Map<NamespacedKey,BlockTransformer>`
  AsyncStructureGenerateEvent.`getBlockTransformers()`
  Gets all block transformers in a unmodifiable map.
  参数类型为BlockTransformer的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `void`
  AsyncStructureGenerateEvent.`setBlockTransformer(@NotNull NamespacedKey key, @NotNull BlockTransformer transformer)`
  Sets a block transformer to a key.

- ## org.bukkit.structure中BlockTransformer的使用

  类型变量类型为BlockTransformer的org.bukkit.structure中的方法参数
  修饰符和类型
  方法
  说明
  `void`
  Structure.`place(@NotNull Location location, boolean includeEntities, @NotNull StructureRotation structureRotation, @NotNull Mirror mirror, int palette, float integrity, @NotNull Random random, @NotNull Collection<BlockTransformer> blockTransformers, @NotNull Collection<EntityTransformer> entityTransformers)`
  Place a structure in the world.
  `void`
  Structure.`place(@NotNull RegionAccessor regionAccessor, @NotNull BlockVector location, boolean includeEntities, @NotNull StructureRotation structureRotation, @NotNull Mirror mirror, int palette, float integrity, @NotNull Random random, @NotNull Collection<BlockTransformer> blockTransformers, @NotNull Collection<EntityTransformer> entityTransformers)`
  Place a structure in the world.