Klasse SchematicGateway

java.lang.Object
de.delinkedde.areashopreborn.integration.SchematicGateway

public final class SchematicGateway extends Object
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
    Konstruktor
    Beschreibung
    Creates a stateless schematic adapter.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    com.sk89q.worldedit.extent.clipboard.Clipboard
    capture(String worldKey, CuboidBounds bounds)
    Captures an exact cuboid from a loaded Bukkit world.
    void
    paste(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.Clipboard
    read(Path file)
    Reads a supported WorldEdit schematic file without accessing a Bukkit world.
    void
    write(com.sk89q.worldedit.extent.clipboard.Clipboard clipboard, Path file)
    Writes a clipboard as a compressed Sponge schematic.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 key
      bounds - 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 clipboard
      file - normalized plugin-owned target file
      Löst aus:
      IOException - when directories or the schematic cannot be written
    • read

      public com.sk89q.worldedit.extent.clipboard.Clipboard read(Path file) throws IOException
      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 key
      bounds - target estate bounds
      clipboard - clipboard to paste
      Löst aus:
      com.sk89q.worldedit.WorldEditException - when WorldEdit cannot complete the paste operation