Interface BlockMechanicsService


public interface BlockMechanicsService
Original-block protection, placed-block/fluid tracking, and automatic decay in Cornucopia and deathmatch regions. All methods must run on the Bukkit main thread.
Since:
1.6.0
  • Method Details

    • resolveScope

      @NotNull @NotNull Optional<BlockMechanicsScope> resolveScope(@NotNull @NotNull org.bukkit.Location location)
    • getState

      @NotNull @NotNull Optional<TrackedBlockState> getState(@NotNull @NotNull org.bukkit.block.Block block)
    • getState

      @NotNull @NotNull TrackedBlockState getState(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block)
    • trackPlayerPlaced

      void trackPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block)
    • trackPlayerPlaced

      void trackPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull List<org.bukkit.block.Block> blocks)
    • trackFluidSpread

      void trackFluidSpread(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block source, @NotNull @NotNull org.bukkit.block.Block destination)
    • forgetPlayerPlaced

      void forgetPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block)
    • shouldPreventBreak

      boolean shouldPreventBreak(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block)
    • isProtected

      boolean isProtected(@NotNull @NotNull org.bukkit.Location location)
    • dropPlayerPlaced

      void dropPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.entity.Player player)