Class RegionMember

java.lang.Object
tfagaming.projects.minecraft.homestead.models.RegionMember

public final class RegionMember extends Object
  • Constructor Details

  • Method Details

    • setAutoUpdate

      public void setAutoUpdate(boolean autoUpdate)
      Toggle Auto-Update for caching. If true, any call for setters will automatically update the cache. Otherwise, only the instance of the class will be updated.
      Parameters:
      autoUpdate - Auto-Update toggle
    • getUniqueId

      public long getUniqueId()
    • getPlayerId

      @NotNull public @NotNull UUID getPlayerId()
    • setPlayerId

      public void setPlayerId(@NotNull @NotNull UUID playerId)
    • getPlayer

      @Nullable public @Nullable org.bukkit.OfflinePlayer getPlayer()
    • setPlayer

      public void setPlayer(@NotNull @NotNull org.bukkit.OfflinePlayer player)
    • getPlayerName

      @NotNull public @NotNull String getPlayerName()
      Returns the player's name safely. If the player was not found by their ID, it will return "?" instead.
      Returns:
      The player's name if found, "?" otherwise.
    • getLinkageType

      @NotNull public @NotNull RegionMember.LinkageType getLinkageType()
    • getRegionId

      public long getRegionId()
    • setRegionId

      public void setRegionId(long regionId)
    • getRegion

      @Nullable public @Nullable Region getRegion()
      Returns the region by directly fetching with region ID from cache.
      Returns:
      The region if found, null otherwise.
    • getRegionName

      @NotNull public @NotNull String getRegionName()
      Returns the region name safely by directly fetching with region ID from cache.
      Returns:
      The region name if found, "?" otherwise.
    • getSubAreaId

      public long getSubAreaId()
    • setSubAreaId

      public void setSubAreaId(long subAreaId)
    • getSubArea

      @Nullable public @Nullable SubArea getSubArea()
      Returns the sub-area by directly fetching with sub-area ID from cache.
      Returns:
      The sub-area if found, null otherwise.
    • getSubAreaName

      @NotNull public @NotNull String getSubAreaName()
      Returns the sub-area name safely by directly fetching with sub-area ID from cache.
      Returns:
      The sub-area name if found, "?" otherwise.
    • getPlayerFlags

      public long getPlayerFlags()
    • setPlayerFlags

      public void setPlayerFlags(long playerFlags)
    • getControlFlags

      public long getControlFlags()
    • setControlFlags

      public void setControlFlags(long controlFlags)
    • getJoinedAt

      public long getJoinedAt()
    • setJoinedAt

      public void setJoinedAt(long joinedAt)
    • getTaxesAt

      public long getTaxesAt()
    • setTaxesAt

      public void setTaxesAt(long taxesAt)