接口的使用
org.bukkit.util.BlockTransformer
使用BlockTransformer的程序包
程序包
说明
Classes related to creating or using
structures without creating Structure
blocks in the world.-
org.bukkit.event.world中BlockTransformer的使用
修饰符和类型方法说明AsyncStructureGenerateEvent.getBlockTransformer(@NotNull NamespacedKey key) 通过键获取方块转换器。返回变量类型为BlockTransformer的类型的org.bukkit.event.world中的方法参数类型为BlockTransformer的org.bukkit.event.world中的方法修饰符和类型方法说明voidAsyncStructureGenerateEvent.setBlockTransformer(@NotNull NamespacedKey key, @NotNull BlockTransformer transformer) 将方块转换器设置到指定键。 -
org.bukkit.structure中BlockTransformer的使用
类型变量类型为BlockTransformer的org.bukkit.structure中的方法参数修饰符和类型方法说明voidStructure.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) 将结构放置到世界中。voidStructure.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) 将结构放置到世界中。