Uses of Class
net.mathias2246.buildmc.api.claims.Claim
Packages that use Claim
Package
Description
-
Uses of Claim in net.mathias2246.buildmc.api.claims
Methods in net.mathias2246.buildmc.api.claims that return ClaimModifier and TypeMethodDescription@Nullable ClaimClaimManager.getClaim(@NotNull org.bukkit.Location location) Gets the claim at a given location.@Nullable ClaimClaimManager.getClaimByID(long claimID) Gets a claim by its ID.Methods in net.mathias2246.buildmc.api.claims that return types with arguments of type ClaimModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<Claim> ClaimManager.getAllClaims()Retrieves allClaimentries stored in the database.com.google.common.collect.ImmutableSet<Claim> ClaimManager.getClaimsInArea(org.bukkit.Location pos1, org.bukkit.Location pos2) Gets all claims within the given area.ClaimManager.registerClaims(List<Claim> claims) Registers multipleClaimobjects in the system and persists them to the database.Methods in net.mathias2246.buildmc.api.claims with parameters of type ClaimModifier and TypeMethodDescriptionvoidClaimManager.addProtection(@NotNull Claim claim, @NotNull Protection protection) Adds a protection to a claim by ID.voidClaimManager.addProtection(@NotNull Claim claim, @NotNull org.bukkit.NamespacedKey protection) Adds a protection to a claim by ID.@NotNull StringClaimManager.getOwnerName(@NotNull Claim claim) Gets the name of the owner of the given claim.booleanClaimManager.hasAllProtectionKeys(Claim claim, Collection<org.bukkit.NamespacedKey> keys) Checks if a claim has all the specified protections by key.booleanClaimManager.hasAllProtections(Claim claim, Collection<String> protections) Checks if a claim has all the specified protections by string identifiers.booleanClaimManager.hasAnyProtection(Claim claim, Collection<org.bukkit.NamespacedKey> protections) Checks if a claim has any of the provided protections.booleanClaimManager.hasProtection(Claim claim, org.bukkit.NamespacedKey protection) Checks if a claim has a specific protection.booleanClaimManager.isPlayerAllowed(@NotNull org.bukkit.entity.Player player, @NotNull Collection<org.bukkit.NamespacedKey> protections, @Nullable Claim claim) Checks whether a player is allowed to perform an action in a claim given multiple protection keys.booleanClaimManager.isPlayerAllowed(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.NamespacedKey protection, @Nullable Claim claim) Checks whether a player is allowed to perform an action in a given claim for a single protection key.booleanClaimManager.isPlayerAllowedInClaim(@Nullable Claim claim, @NotNull org.bukkit.entity.Player player) Checks whether a player is allowed to be inside the given claim.voidClaimManager.removeProtection(@NotNull Claim claim, @NotNull Protection protection) Removes a protection from a claim by ID.voidClaimManager.removeProtection(@NotNull Claim claim, @NotNull org.bukkit.NamespacedKey protection) Removes a protection from a claim by ID.@Nullable LongClaimManager.tryClaimArea(@NotNull Claim claim) Attempts to register aClaiminstance.voidClaimManager.updateClaimName(@NotNull Claim claim, @NotNull String newName) Update the name of a ClaimvoidClaimManager.updateClaimOwner(@NotNull Claim claim, @NotNull String newOwnerId) Update the owner of a ClaimMethod parameters in net.mathias2246.buildmc.api.claims with type arguments of type ClaimModifier and TypeMethodDescriptionvoidClaimManager.deleteClaims(Collection<Claim> claims) Deletes multipleClaimobjects from the system and removes them from the database.ClaimManager.registerClaims(List<Claim> claims) Registers multipleClaimobjects in the system and persists them to the database. -
Uses of Claim in net.mathias2246.buildmc.api.event.claims
Methods in net.mathias2246.buildmc.api.event.claims that return ClaimModifier and TypeMethodDescription@NotNull ClaimClaimCreateEvent.getClaim()Convenience method for single-claim operations.@NotNull ClaimClaimOwnerChangeEvent.getClaim()Gets the claim whose ownership is being changed.@NotNull ClaimClaimProtectionChangeEvent.getClaim()Gets the claim where the protection was toggled on or off.@NotNull ClaimClaimRemoveEvent.getClaim()Convenience method for single-claim operations.@NotNull ClaimClaimWhitelistChangeEvent.getClaim()Gets the claim where the whitelist is about to be changed.Methods in net.mathias2246.buildmc.api.event.claims that return types with arguments of type ClaimModifier and TypeMethodDescription@NotNull com.google.common.collect.ImmutableList<@NotNull Claim> ClaimCreateEvent.getClaims()Gets an immutable list of claims being created.@NotNull com.google.common.collect.ImmutableList<@NotNull Claim> ClaimRemoveEvent.getClaims()Gets an immutable list of claims that were removed.Constructors in net.mathias2246.buildmc.api.event.claims with parameters of type ClaimModifierConstructorDescriptionClaimCreateEvent(@NotNull Claim claim) Constructs a newClaimCreateEventfor a claim.ClaimOwnerChangeEvent(@NotNull Claim claim, @NotNull String oldOwnerId, @NotNull String newOwnerId) Creates a new claim owner change event.ClaimProtectionChangeEvent(@NotNull Claim claim, @NotNull Protection protection, @NotNull ClaimProtectionChangeEvent.ActiveState newState) ClaimRemoveEvent(@NotNull Claim claim) Constructs a newClaimRemoveEventfor a single claim.ClaimWhitelistChangeEvent(@NotNull Claim claim, @NotNull org.bukkit.OfflinePlayer whitelistedPlayer, @NotNull ClaimWhitelistChangeEvent.ChangeAction action) The default constructor for creating this event.Constructor parameters in net.mathias2246.buildmc.api.event.claims with type arguments of type ClaimModifierConstructorDescriptionClaimCreateEvent(@NotNull List<@NotNull Claim> claims) Constructs a newClaimCreateEventfor multiple claims.ClaimRemoveEvent(@NotNull List<@NotNull Claim> claims) Constructs a newClaimRemoveEventfor multiple claims. -
Uses of Claim in net.mathias2246.buildmc.util
Methods in net.mathias2246.buildmc.util with parameters of type ClaimModifier and TypeMethodDescriptionstatic org.bukkit.util.Vector[]LocationUtil.getBlockCorners(Claim claim) Returns the min and max block coordinates of a claim.