Package com.hazebyte.crate.api.claim
Interface ClaimRegistrar
-
public interface ClaimRegistrar
ClaimRegistrar is an API that manages claims.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Claim>
addClaim(org.bukkit.OfflinePlayer player, Crate crate, int amount)
CompletableFuture<Claim>
addClaim(org.bukkit.OfflinePlayer player, List<Reward> rewards)
CompletableFuture<Collection<Claim>>
getClaim(org.bukkit.OfflinePlayer player, long timestamp)
CompletableFuture<Optional<Claim>>
getClaim(org.bukkit.OfflinePlayer player, UUID uuid)
CompletableFuture<Collection<Claim>>
getClaims(org.bukkit.OfflinePlayer player)
void
openInventory(org.bukkit.entity.Player player)
CompletableFuture<Void>
removeClaim(Claim claim)
void
spoofInventory(org.bukkit.OfflinePlayer player, org.bukkit.entity.Player viewer)
-
-
-
Method Detail
-
addClaim
CompletableFuture<Claim> addClaim(org.bukkit.OfflinePlayer player, List<Reward> rewards)
-
addClaim
CompletableFuture<Claim> addClaim(org.bukkit.OfflinePlayer player, Crate crate, int amount)
-
removeClaim
CompletableFuture<Void> removeClaim(Claim claim) throws IOException
- Throws:
IOException
-
getClaim
CompletableFuture<Optional<Claim>> getClaim(org.bukkit.OfflinePlayer player, UUID uuid)
-
getClaim
CompletableFuture<Collection<Claim>> getClaim(org.bukkit.OfflinePlayer player, long timestamp)
-
getClaims
CompletableFuture<Collection<Claim>> getClaims(org.bukkit.OfflinePlayer player)
-
openInventory
void openInventory(org.bukkit.entity.Player player)
-
spoofInventory
void spoofInventory(org.bukkit.OfflinePlayer player, org.bukkit.entity.Player viewer)
-
-