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

public final class RegionLog extends Object
  • Constructor Details

    • RegionLog

      public RegionLog(long regionId, String author, String message)
    • RegionLog

      public RegionLog(long regionId, String author, String message, long sentAt, boolean read)
    • RegionLog

      public RegionLog(long id, long regionId, String author, String message, long sentAt, boolean read)
  • 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()
    • 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.
    • getAuthor

      @NotNull public @NotNull String getAuthor()
    • setAuthor

      public void setAuthor(@NotNull @NotNull String author)
    • getMessage

      @NotNull public @NotNull String getMessage()
    • setMessage

      public void setMessage(@NotNull @NotNull String message)
    • getSentAt

      public long getSentAt()
    • setSentAt

      public void setSentAt(long sentAt)
    • isRead

      public boolean isRead()
    • setRead

      public void setRead(boolean read)