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 ua.mcchickenstudio.opencreative.managers.Manager

    getName
  • 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.