Package com.plotsquared.core.util
Class PlotUploader
java.lang.Object
com.plotsquared.core.util.PlotUploader
This class handles communication with the Arkitektonika REST service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA result of a plot upload process. -
Constructor Summary
ConstructorsConstructorDescriptionPlotUploader(@NonNull SchematicHandler schematicHandler) Create a new PlotUploader instance that uses the given schematic handler to create schematics of plots. -
Method Summary
Modifier and TypeMethodDescriptionUpload a plot and retrieve a result.
-
Constructor Details
-
PlotUploader
Create a new PlotUploader instance that uses the given schematic handler to create schematics of plots.- Parameters:
schematicHandler- the handler to create schematics of plots.
-
-
Method Details
-
upload
Upload a plot and retrieve a result. The plot will be saved into a temporary schematic file and uploaded to the REST service specified bySettings.Arkitektonika.BACKEND_URL.- Parameters:
plot- The plot to upload- Returns:
- a
CompletableFuturethat provides aPlotUploader.PlotUploadResultif finished.
-