Class RegionLog
java.lang.Object
tfagaming.projects.minecraft.homestead.models.RegionLog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull String@Nullable RegionReturns the region by directly fetching with region ID from cache.long@NotNull StringReturns the region name safely by directly fetching with region ID from cache.longlongbooleanisRead()voidvoidsetAutoUpdate(boolean autoUpdate) Toggle Auto-Update for caching.voidsetMessage(@NotNull String message) voidsetRead(boolean read) voidsetRegionId(long regionId) voidsetSentAt(long sentAt)
-
Constructor Details
-
RegionLog
-
RegionLog
-
RegionLog
-
-
Method Details
-
setAutoUpdate
public void setAutoUpdate(boolean autoUpdate) Toggle Auto-Update for caching. Iftrue, 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
Returns the region by directly fetching with region ID from cache.- Returns:
- The region if found,
nullotherwise.
-
getRegionName
Returns the region name safely by directly fetching with region ID from cache.- Returns:
- The region name if found,
"?"otherwise.
-
getAuthor
-
setAuthor
-
getMessage
-
setMessage
-
getSentAt
public long getSentAt() -
setSentAt
public void setSentAt(long sentAt) -
isRead
public boolean isRead() -
setRead
public void setRead(boolean read)
-