Class WorldEditManager
java.lang.Object
ua.mcchickenstudio.opencreative.managers.blocks.WorldEditManager
- All Implemented Interfaces:
BlocksManager, Manager
WorldEditManager
This class represents a manager, that controls changing many blocks, using WorldEdit.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns name of manager, that will be displayed by request in the logs.voidinit()Initialization of manager.booleanChecks if manager is ready to work.@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.
-
Constructor Details
-
WorldEditManager
public WorldEditManager()
-
-
Method Details
-
setBlocksType
@NotNull public @NotNull CompletableFuture<Integer> setBlocksType(@NotNull @NotNull org.bukkit.Location first, @NotNull @NotNull org.bukkit.Location second, @NotNull @NotNull org.bukkit.Material material, int limit) Description copied from interface:BlocksManagerSets 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).- Specified by:
setBlocksTypein interfaceBlocksManager- Parameters:
first- begin.second- end.material- material to set.limit- limit of changed blocks.- Returns:
- future with changed blocks amount.
-
init
-
isEnabled
-
getName
-