Class AbstractClaim

java.lang.Object
su.nightexpress.excellentclaims.core.claim.base.AbstractClaim
All Implemented Interfaces:
su.nightexpress.excellentclaims.api.claim.Claim, su.nightexpress.excellentclaims.api.core.id.Identifiable, su.nightexpress.nightcore.util.placeholder.PlaceholderResolvable
Direct Known Subclasses:
AbstractOwnedClaim

@NullMarked public abstract class AbstractClaim extends Object implements su.nightexpress.excellentclaims.api.claim.Claim
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final su.nightexpress.excellentclaims.api.claim.ClaimDefinition
     
    protected final su.nightexpress.excellentclaims.api.claim.ClaimIdentity
     
    protected final su.nightexpress.excellentclaims.api.claim.ClaimRules
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractClaim(su.nightexpress.excellentclaims.api.claim.ClaimIdentity identity, su.nightexpress.excellentclaims.api.claim.ClaimDefinition definition, su.nightexpress.excellentclaims.api.claim.ClaimRules rules)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    su.nightexpress.excellentclaims.api.claim.ClaimDefinition
     
    <T> String
    formatSummary(su.nightexpress.excellentclaims.api.rule.ClaimRule<T> rule)
     
     
    su.nightexpress.nightcore.util.bukkit.NightItem
     
    su.nightexpress.excellentclaims.api.core.id.Identifier
     
    su.nightexpress.excellentclaims.api.core.id.Identifier
     
     
    int
     
     
    <T> Optional<T>
    getRuleOrIgnoreIfUnset(su.nightexpress.excellentclaims.api.rule.ClaimRule<T> rule)
     
    su.nightexpress.excellentclaims.api.claim.ClaimRules
     
    su.nightexpress.nightcore.util.geodata.pos.ExactPos
     
    org.bukkit.World
     
    su.nightexpress.nightcore.bridge.key.AdaptedKey
     
    boolean
     
    boolean
     
    boolean
    isWorld(org.bukkit.World world)
     
    boolean
    isWorld(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
     
    void
    setDescription(List<String> description)
     
    void
     
    void
     
    void
    setIcon(su.nightexpress.nightcore.util.bukkit.NightItem icon)
     
    void
     
    void
    setPriority(int priority)
     
    void
    setSpawnLocation(su.nightexpress.nightcore.util.geodata.pos.ExactPos pos)
     
    Optional<org.bukkit.World>
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface su.nightexpress.excellentclaims.api.claim.Claim

    contains, contains, getEffectiveChunkKeys, isBackgroundClaim, isEmpty, isIntersecting, isSupportingUnsetRules

    Methods inherited from interface su.nightexpress.excellentclaims.api.core.id.Identifiable

    id

    Methods inherited from interface su.nightexpress.nightcore.util.placeholder.PlaceholderResolvable

    placeholders
  • Field Details

    • identity

      protected final su.nightexpress.excellentclaims.api.claim.ClaimIdentity identity
    • definition

      protected final su.nightexpress.excellentclaims.api.claim.ClaimDefinition definition
    • rules

      protected final su.nightexpress.excellentclaims.api.claim.ClaimRules rules
  • Constructor Details

    • AbstractClaim

      public AbstractClaim(su.nightexpress.excellentclaims.api.claim.ClaimIdentity identity, su.nightexpress.excellentclaims.api.claim.ClaimDefinition definition, su.nightexpress.excellentclaims.api.claim.ClaimRules rules)
  • Method Details

    • isDisabled

      public boolean isDisabled()
      Specified by:
      isDisabled in interface su.nightexpress.excellentclaims.api.claim.Claim
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setDisabled

      public void setDisabled()
      Specified by:
      setDisabled in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setEnabled

      public void setEnabled()
      Specified by:
      setEnabled in interface su.nightexpress.excellentclaims.api.claim.Claim
    • isWorld

      public boolean isWorld(su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey)
      Specified by:
      isWorld in interface su.nightexpress.excellentclaims.api.claim.Claim
    • isWorld

      public boolean isWorld(org.bukkit.World world)
      Specified by:
      isWorld in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getWorld

      public org.bukkit.World getWorld()
      Specified by:
      getWorld in interface su.nightexpress.excellentclaims.api.claim.Claim
    • world

      public Optional<org.bukkit.World> world()
      Specified by:
      world in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getRuleOrIgnoreIfUnset

      public <T> Optional<T> getRuleOrIgnoreIfUnset(su.nightexpress.excellentclaims.api.rule.ClaimRule<T> rule)
      Specified by:
      getRuleOrIgnoreIfUnset in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getId

      public su.nightexpress.excellentclaims.api.core.id.Identifier getId()
      Specified by:
      getId in interface su.nightexpress.excellentclaims.api.core.id.Identifiable
    • getWorldKey

      public su.nightexpress.nightcore.bridge.key.AdaptedKey getWorldKey()
      Specified by:
      getWorldKey in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getModuleKey

      public su.nightexpress.excellentclaims.api.core.id.Identifier getModuleKey()
      Specified by:
      getModuleKey in interface su.nightexpress.excellentclaims.api.claim.Claim
    • definition

      public su.nightexpress.excellentclaims.api.claim.ClaimDefinition definition()
      Specified by:
      definition in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getRules

      public su.nightexpress.excellentclaims.api.claim.ClaimRules getRules()
      Specified by:
      getRules in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getName

      public String getName()
      Specified by:
      getName in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getRawName

      public String getRawName()
      Specified by:
      getRawName in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setName

      public void setName(String name)
      Specified by:
      setName in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getDescription

      public List<String> getDescription()
      Specified by:
      getDescription in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setDescription

      public void setDescription(List<String> description)
      Specified by:
      setDescription in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getIcon

      public su.nightexpress.nightcore.util.bukkit.NightItem getIcon()
      Specified by:
      getIcon in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setIcon

      public void setIcon(su.nightexpress.nightcore.util.bukkit.NightItem icon)
      Specified by:
      setIcon in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setPriority

      public void setPriority(int priority)
      Specified by:
      setPriority in interface su.nightexpress.excellentclaims.api.claim.Claim
    • getSpawnLocation

      public su.nightexpress.nightcore.util.geodata.pos.ExactPos getSpawnLocation()
      Specified by:
      getSpawnLocation in interface su.nightexpress.excellentclaims.api.claim.Claim
    • setSpawnLocation

      public void setSpawnLocation(su.nightexpress.nightcore.util.geodata.pos.ExactPos pos)
      Specified by:
      setSpawnLocation in interface su.nightexpress.excellentclaims.api.claim.Claim
    • formatSummary

      public <T> String formatSummary(su.nightexpress.excellentclaims.api.rule.ClaimRule<T> rule)
      Specified by:
      formatSummary in interface su.nightexpress.excellentclaims.api.claim.Claim