Interface BlocksManager
- All Superinterfaces:
Manager
- All Known Implementing Classes:
VanillaBlocksManager, WorldEditManager
BlocksManager
This interface represents a manager, that controls changing many blocks in world.-
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<Integer> setBlocksType(@NotNull org.bukkit.Location first, @NotNull org.bukkit.Location second, @NotNull org.bukkit.Material material, int limit) Sets blocks type in region.
-
Method Details
-
setBlocksType
@NotNull @NotNull CompletableFuture<Integer> setBlocksType(@NotNull @NotNull org.bukkit.Location first, @NotNull @NotNull org.bukkit.Location second, @NotNull @NotNull org.bukkit.Material material, int limit) Sets blocks type in region.NOTE: thenAccept methods should be used with
BukkitScheduler.runTask(Plugin, Runnable), if they require synchronous usage (changing some blocks after setting area).- Parameters:
first- begin.second- end.material- material to set.limit- limit of changed blocks.- Returns:
- future with changed blocks amount.
-