Interface StorageService


public interface StorageService
Manages blocks stored on player plot anvils, accumulated income, selling, and upgrades.
  • Method Details

    • getBlocks

      @NotNull @NotNull List<StoredBlockView> getBlocks(@NotNull @NotNull UUID playerId)
    • getBlockAtAnvil

      @NotNull @NotNull Optional<StoredBlockView> getBlockAtAnvil(@NotNull @NotNull org.bukkit.Location anvilLocation)
    • countBlocks

      int countBlocks(@NotNull @NotNull UUID playerId, @NotNull @NotNull String blockId)
    • isStorageFull

      boolean isStorageFull(@NotNull @NotNull org.bukkit.entity.Player player)
    • giveBlock

      @MainThread @NotNull @NotNull ActionResult giveBlock(@NotNull @NotNull UUID playerId, @NotNull @NotNull BlockType blockType, @NotNull @NotNull Cause cause)
    • storeBlockAt

      @MainThread @NotNull @NotNull ActionResult storeBlockAt(@NotNull @NotNull UUID playerId, @NotNull @NotNull BlockType blockType, @NotNull @NotNull org.bukkit.Location anvilLoc, @NotNull @NotNull String arenaId, @NotNull @NotNull Cause cause)
    • removeBlock

      @MainThread @NotNull @NotNull ActionResult removeBlock(@NotNull @NotNull StoredBlockView blockView, @NotNull @NotNull Cause cause)
    • upgradeBlock

      @MainThread @NotNull @NotNull ActionResult upgradeBlock(@NotNull @NotNull StoredBlockView blockView, @NotNull @NotNull BlockType newType, @NotNull @NotNull Cause cause)
    • sellBlock

      @MainThread @NotNull @NotNull ActionResult sellBlock(@NotNull @NotNull org.bukkit.entity.Player owner, @NotNull @NotNull StoredBlockView blockView, @NotNull @NotNull Cause cause)
    • collectAccumulatedMoney

      @MainThread double collectAccumulatedMoney(@NotNull @NotNull org.bukkit.entity.Player owner, @NotNull @NotNull StoredBlockView blockView, @NotNull @NotNull Cause cause)