Class VanillaBlocksManager
java.lang.Object
ua.mcchickenstudio.opencreative.managers.blocks.VanillaBlocksManager
- All Implemented Interfaces:
BlocksManager, Manager
-
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
-
VanillaBlocksManager
public VanillaBlocksManager()
-
-
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
-