Klasse SchematicGateway
java.lang.Object
de.delinkedde.areashopreborn.integration.SchematicGateway
Adapts WorldEdit or FAWE clipboard operations without dispatching server commands.
World capture and paste methods access loaded world state and must be invoked through the plugin's server-thread bridge. Clipboard file methods perform only file I/O and may run on a background executor.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcom.sk89q.worldedit.extent.clipboard.Clipboardcapture(String worldKey, CuboidBounds bounds) Captures an exact cuboid from a loaded Bukkit world.voidpaste(String worldKey, CuboidBounds bounds, com.sk89q.worldedit.extent.clipboard.Clipboard clipboard) Pastes a clipboard at the minimum point of an estate cuboid, including air blocks.com.sk89q.worldedit.extent.clipboard.ClipboardReads a supported WorldEdit schematic file without accessing a Bukkit world.voidWrites a clipboard as a compressed Sponge schematic.
-
Konstruktordetails
-
SchematicGateway
public SchematicGateway()Creates a stateless schematic adapter.
-
-
Methodendetails
-
capture
public com.sk89q.worldedit.extent.clipboard.Clipboard capture(String worldKey, CuboidBounds bounds) throws com.sk89q.worldedit.WorldEditException Captures an exact cuboid from a loaded Bukkit world.- Parameter:
worldKey- Bukkit world keybounds- cuboid to capture- Gibt zurück:
- in-memory clipboard with its origin at the minimum point
- Löst aus:
com.sk89q.worldedit.WorldEditException- when WorldEdit cannot complete the copy operation
-
write
public void write(com.sk89q.worldedit.extent.clipboard.Clipboard clipboard, Path file) throws IOException Writes a clipboard as a compressed Sponge schematic.- Parameter:
clipboard- captured clipboardfile- normalized plugin-owned target file- Löst aus:
IOException- when directories or the schematic cannot be written
-
read
Reads a supported WorldEdit schematic file without accessing a Bukkit world.- Parameter:
file- normalized plugin-owned schematic file- Gibt zurück:
- in-memory clipboard
- Löst aus:
IOException- when the format is unknown or the file cannot be read
-
paste
public void paste(String worldKey, CuboidBounds bounds, com.sk89q.worldedit.extent.clipboard.Clipboard clipboard) throws com.sk89q.worldedit.WorldEditException Pastes a clipboard at the minimum point of an estate cuboid, including air blocks.- Parameter:
worldKey- Bukkit world keybounds- target estate boundsclipboard- clipboard to paste- Löst aus:
com.sk89q.worldedit.WorldEditException- when WorldEdit cannot complete the paste operation
-