public interface Schematic
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
adjustRotation(org.bukkit.Location location)
Adjust schematic's rotations to the given location.
|
java.lang.String |
getName()
Get the name of the schematic.
|
void |
pasteSchematic(Island island,
org.bukkit.Location location,
java.lang.Runnable callback)
Paste te schematic in a specific location.
|
void |
pasteSchematic(Island island,
org.bukkit.Location location,
java.lang.Runnable callback,
java.util.function.Consumer<java.lang.Throwable> onFailure)
Paste te schematic in a specific location.
|
java.lang.String getName()
void pasteSchematic(Island island, org.bukkit.Location location, java.lang.Runnable callback)
island
- The island of the schematic.location
- The location to paste the schematic at.callback
- A callback runnable that runs when the process finishesvoid pasteSchematic(Island island, org.bukkit.Location location, java.lang.Runnable callback, @Nullable java.util.function.Consumer<java.lang.Throwable> onFailure)
island
- The island of the schematic.location
- The location to paste the schematic at.callback
- A callback runnable that runs when the process finishesonFailure
- A consumer that will be ran if the creation fails.org.bukkit.Location adjustRotation(org.bukkit.Location location)
location
- The location to adjust.