Interface ClaimRepository<T extends Claim>


@NullMarked public interface ClaimRepository<T extends Claim>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    clear(org.bukkit.World world)
     
    void
    clear(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
    int
    countClaims(UUID playerId)
     
    int
    countClaims(org.bukkit.entity.Player player)
     
    @Nullable T
     
    getAt(org.bukkit.block.Block block)
     
    getAt(org.bukkit.Location location)
     
    getAt(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    getAt(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    getByOwner(UUID ownerId)
     
    getByOwner(org.bukkit.OfflinePlayer player)
     
    getInChunk(org.bukkit.Chunk chunk)
     
    getInChunk(org.bukkit.World world, int chunkX, int chunkZ)
     
    getInChunk(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.ChunkPos chunkPos)
     
    getInChunk(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, int chunkX, int chunkZ)
     
    getInChunk(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.ChunkPos chunkPos)
     
    getInCuboid(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.Cuboid cuboid)
     
    getInCuboid(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.Cuboid cuboid)
     
    @Nullable T
    getPrioritizedClaim(org.bukkit.block.Block block)
     
    @Nullable T
    getPrioritizedClaim(org.bukkit.Location location)
     
    @Nullable T
    getPrioritizedClaim(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    @Nullable T
    getPrioritizedClaim(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    ids()
     
    ids(org.bukkit.World world)
     
    ids(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
     
    idValues(org.bukkit.World world)
     
    idValues(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
    boolean
    isClaimed(org.bukkit.block.Block block)
     
    boolean
    isClaimed(org.bukkit.Location location)
     
    boolean
    isClaimed(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    boolean
    isClaimed(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
     
    boolean
     
    boolean
    isEmpty(org.bukkit.World world)
     
    boolean
    isEmpty(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
     
    void
    register(@NonNull T item)
     
    void
    reindex(@NonNull T claim)
     
    @Nullable T
    remove(@NonNull T item)
     
    @Nullable T
     
    int
     
    int
    size(org.bukkit.World world)
     
    int
    size(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
     
    stream(org.bukkit.World world)
     
    stream(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
     
    values(org.bukkit.World world)
     
    values(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
  • Method Details

    • reindex

      void reindex(@NonNull T claim)
    • register

      void register(@NonNull T item)
    • remove

      @Nullable T remove(@NonNull T item)
    • remove

      @Nullable T remove(Identifier id)
    • get

      @Nullable T get(Identifier key)
    • lookup

      Optional<T> lookup(Identifier key)
    • values

      Set<T> values()
    • values

      Set<T> values(org.bukkit.World world)
    • values

      Set<T> values(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • ids

      Set<Identifier> ids()
    • ids

      Set<Identifier> ids(org.bukkit.World world)
    • ids

      Set<Identifier> ids(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • idValues

      Set<String> idValues()
    • idValues

      Set<String> idValues(org.bukkit.World world)
    • idValues

      Set<String> idValues(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • clear

      void clear()
    • clear

      void clear(org.bukkit.World world)
    • clear

      void clear(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • size

      int size()
    • size

      int size(org.bukkit.World world)
    • size

      int size(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • isEmpty

      boolean isEmpty()
    • isEmpty

      boolean isEmpty(org.bukkit.World world)
    • isEmpty

      boolean isEmpty(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • countClaims

      int countClaims(org.bukkit.entity.Player player)
    • countClaims

      int countClaims(UUID playerId)
    • isClaimed

      boolean isClaimed(org.bukkit.Location location)
    • isClaimed

      boolean isClaimed(org.bukkit.block.Block block)
    • isClaimed

      boolean isClaimed(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
    • isClaimed

      boolean isClaimed(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
    • stream

      Stream<T> stream()
    • stream

      Stream<T> stream(org.bukkit.World world)
    • stream

      Stream<T> stream(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
    • getByOwner

      Set<T> getByOwner(org.bukkit.OfflinePlayer player)
    • getByOwner

      Set<T> getByOwner(UUID ownerId)
    • getInCuboid

      Set<T> getInCuboid(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.Cuboid cuboid)
    • getInCuboid

      Set<T> getInCuboid(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.Cuboid cuboid)
    • getAt

      Set<T> getAt(org.bukkit.Location location)
    • getAt

      Set<T> getAt(org.bukkit.block.Block block)
    • getAt

      Set<T> getAt(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
    • getAt

      Set<T> getAt(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
    • getInChunk

      Set<T> getInChunk(org.bukkit.Chunk chunk)
    • getInChunk

      Set<T> getInChunk(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.ChunkPos chunkPos)
    • getInChunk

      Set<T> getInChunk(org.bukkit.World world, int chunkX, int chunkZ)
    • getInChunk

      Set<T> getInChunk(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.ChunkPos chunkPos)
    • getInChunk

      Set<T> getInChunk(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, int chunkX, int chunkZ)
    • getPrioritizedClaim

      @Nullable T getPrioritizedClaim(org.bukkit.block.Block block)
    • getPrioritizedClaim

      @Nullable T getPrioritizedClaim(org.bukkit.Location location)
    • getPrioritizedClaim

      @Nullable T getPrioritizedClaim(org.bukkit.World world, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)
    • getPrioritizedClaim

      @Nullable T getPrioritizedClaim(su.nightexpress.nightcore.bridge.key.AdaptedKey worldId, su.nightexpress.nightcore.util.geodata.pos.BlockPos blockPos)