Class War
java.lang.Object
tfagaming.projects.minecraft.homestead.models.War
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegionId(long regionId) @Nullable String@NotNull String@NotNull StringgetName()doublegetPrize()longlong@Nullable RegionvoidremoveRegionId(long regionId) voidsetAutoUpdate(boolean autoUpdate) Toggle Auto-Update for caching.voidsetDescription(@Nullable String description) voidsetDisplayName(@Nullable String displayName) voidvoidsetPrize(double prize) voidsetRegionIds(List<Long> regionIds) voidsetStartedAt(long startedAt)
-
Constructor Details
-
War
-
War
-
War
-
-
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() -
getName
-
setName
-
getDisplayName
-
setDisplayName
-
getDescription
-
setDescription
-
getRegionIds
-
setRegionIds
-
getRegions
-
addRegionId
public void addRegionId(long regionId) -
removeRegionId
public void removeRegionId(long regionId) -
getPrize
public double getPrize() -
setPrize
public void setPrize(double prize) -
getStartedAt
public long getStartedAt() -
setStartedAt
public void setStartedAt(long startedAt) -
getWinner
-