Class VanillaBlocksManager

java.lang.Object
ua.mcchickenstudio.opencreative.managers.blocks.VanillaBlocksManager
All Implemented Interfaces:
BlocksManager, Manager

public final class VanillaBlocksManager extends Object implements BlocksManager
  • 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: BlocksManager
      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).

      Specified by:
      setBlocksType in interface BlocksManager
      Parameters:
      first - begin.
      second - end.
      material - material to set.
      limit - limit of changed blocks.
      Returns:
      future with changed blocks amount.
    • init

      public void init()
      Description copied from interface: Manager
      Initialization of manager.
      Specified by:
      init in interface Manager
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Manager
      Checks if manager is ready to work.
      Specified by:
      isEnabled in interface Manager
      Returns:
      true - if enabled, false - disabled.
    • getName

      public String getName()
      Description copied from interface: Manager
      Returns name of manager, that will be displayed by request in the logs.
      Specified by:
      getName in interface Manager
      Returns:
      name of manager.