接口的使用
org.bukkit.structure.Structure
使用Structure的程序包
程序包
说明
Classes related to creating or using
structures without creating Structure
blocks in the world.-
org.bukkit.structure中Structure的使用
修饰符和类型方法说明创建此结构的副本.StructureManager.createStructure()创建一个新的空结构.StructureManager.getStructure(@NotNull NamespacedKey structureKey) 获取已注册的结构。StructureManager.loadStructure(@NotNull File file) 从磁盘读取结构。StructureManager.loadStructure(@NotNull InputStream inputStream) 从流中读取结构。StructureManager.loadStructure(@NotNull NamespacedKey structureKey) 加载指定键的结构并自动注册它。StructureManager.loadStructure(@NotNull NamespacedKey structureKey, boolean register) 为指定键加载结构,并可选择注册它。StructureManager.registerStructure(@NotNull NamespacedKey structureKey, @NotNull Structure structure) 注册给定的结构。StructureManager.unregisterStructure(@NotNull NamespacedKey structureKey) 注销结构。返回变量类型为Structure的类型的org.bukkit.structure中的方法参数类型为Structure的org.bukkit.structure中的方法修饰符和类型方法说明创建此结构的副本.StructureManager.registerStructure(@NotNull NamespacedKey structureKey, @NotNull Structure structure) 注册给定的结构。voidStructureManager.saveStructure(@NotNull File file, @NotNull Structure structure) 将结构保存到文件。voidStructureManager.saveStructure(@NotNull OutputStream outputStream, @NotNull Structure structure) 将结构保存到流.voidStructureManager.saveStructure(@NotNull NamespacedKey structureKey, @NotNull Structure structure) 将具有给定键的结构保存到主世界文件夹。