Class SeRent
java.lang.Object
tfagaming.projects.minecraft.homestead.models.serialize.SeRent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SeRentdeserialize(@NotNull String serialized) booleandoublegetPrice()@Nullable org.bukkit.OfflinePlayerReturns the renter's name safely.longlonginthashCode()booleanisManual()voidsetPrice(double price) voidsetRenterId(UUID renterId) voidsetStartedAt(long startedAt) voidsetUntilAt(long untilAt) toString()
-
Constructor Details
-
SeRent
public SeRent(org.bukkit.OfflinePlayer renter, long untilAt, double price) -
SeRent
public SeRent(org.bukkit.OfflinePlayer renter, long startedAt, long untilAt, double price) -
SeRent
-
-
Method Details
-
deserialize
-
getRenterId
-
setRenterId
-
getRenter
@Nullable public @Nullable org.bukkit.OfflinePlayer getRenter() -
getRenterName
Returns the renter's name safely. If the player was not found by their ID, it will return"?"instead.- Returns:
- The player's name if found,
"?"otherwise.
-
getStartedAt
public long getStartedAt() -
setStartedAt
public void setStartedAt(long startedAt) -
getUntilAt
public long getUntilAt() -
setUntilAt
public void setUntilAt(long untilAt) -
isManual
public boolean isManual() -
getPrice
public double getPrice() -
setPrice
public void setPrice(double price) -
serialize
-
toString
-
equals
-
hashCode
public int hashCode()
-