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
Modifier and TypeClassDescriptionstatic class
A result of a plot upload process. -
Constructor Summary
ConstructorDescriptionPlotUploader
(@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
CompletableFuture
that provides aPlotUploader.PlotUploadResult
if finished.
-