Interface StorageService
public interface StorageService
Manages blocks stored on player plot anvils, accumulated income, selling, and upgrades.
-
Method Summary
Modifier and TypeMethodDescriptiondoublecollectAccumulatedMoney(@NotNull org.bukkit.entity.Player owner, @NotNull StoredBlockView blockView, @NotNull Cause cause) intcountBlocks(@NotNull UUID playerId, @NotNull String blockId) @NotNull Optional<StoredBlockView> getBlockAtAnvil(@NotNull org.bukkit.Location anvilLocation) @NotNull List<StoredBlockView> @NotNull ActionResultbooleanisStorageFull(@NotNull org.bukkit.entity.Player player) @NotNull ActionResultremoveBlock(@NotNull StoredBlockView blockView, @NotNull Cause cause) @NotNull ActionResultsellBlock(@NotNull org.bukkit.entity.Player owner, @NotNull StoredBlockView blockView, @NotNull Cause cause) @NotNull ActionResultstoreBlockAt(@NotNull UUID playerId, @NotNull BlockType blockType, @NotNull org.bukkit.Location anvilLoc, @NotNull String arenaId, @NotNull Cause cause) @NotNull ActionResultupgradeBlock(@NotNull StoredBlockView blockView, @NotNull BlockType newType, @NotNull Cause cause)
-
Method Details
-
getBlocks
-
getBlockAtAnvil
@NotNull @NotNull Optional<StoredBlockView> getBlockAtAnvil(@NotNull @NotNull org.bukkit.Location anvilLocation) -
countBlocks
-
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)
-