Interface BlocksManager

All Superinterfaces:
Manager
All Known Implementing Classes:
VanillaBlocksManager, WorldEditManager

public interface BlocksManager extends Manager

BlocksManager

This interface represents a manager, that controls changing many blocks in world.
  • Method Summary

    Modifier and Type
    Method
    Description
    setBlocksType(@NotNull org.bukkit.Location first, @NotNull org.bukkit.Location second, @NotNull org.bukkit.Material material, int limit)
    Sets blocks type in region.

    Methods inherited from interface Manager

    getName, init, isEnabled
    Modifier and Type
    Method
    Description
    Returns name of manager, that will be displayed by request in the logs.
    void
    Initialization of manager.
    boolean
    Checks if manager is ready to work.
  • 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.