java.lang.Object
tfagaming.projects.minecraft.homestead.models.serialize.SeRent

public final class SeRent extends Object
  • 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

      public SeRent(UUID renterId, long startedAt, long untilAt, double price)
  • Method Details

    • deserialize

      public static SeRent deserialize(@NotNull @NotNull String serialized)
    • getRenterId

      public UUID getRenterId()
    • setRenterId

      public void setRenterId(UUID renterId)
    • getRenter

      @Nullable public @Nullable org.bukkit.OfflinePlayer getRenter()
    • getRenterName

      public String 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

      public String serialize()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object