public abstract class BanEntry<T> extends UserListEntry<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
banEndDate |
protected java.lang.String |
bannedBy |
protected java.util.Date |
banStartDate |
static java.text.SimpleDateFormat |
DATE_FORMAT |
protected java.lang.String |
reason |
Modifier | Constructor and Description |
---|---|
|
BanEntry(T valueIn,
java.util.Date startDate,
java.lang.String banner,
java.util.Date endDate,
java.lang.String banReason) |
protected |
BanEntry(T valueIn,
com.google.gson.JsonObject json) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getBanEndDate() |
java.lang.String |
getBannedBy() |
java.lang.String |
getBanReason() |
abstract ITextComponent |
getDisplayName() |
(package private) boolean |
hasBanExpired() |
protected void |
onSerialization(com.google.gson.JsonObject data) |
getValue
public static final java.text.SimpleDateFormat DATE_FORMAT
protected final java.util.Date banStartDate
protected final java.lang.String bannedBy
protected final java.util.Date banEndDate
protected final java.lang.String reason
public BanEntry(T valueIn, @Nullable java.util.Date startDate, @Nullable java.lang.String banner, @Nullable java.util.Date endDate, @Nullable java.lang.String banReason)
protected BanEntry(T valueIn, com.google.gson.JsonObject json)
public java.lang.String getBannedBy()
public java.util.Date getBanEndDate()
public java.lang.String getBanReason()
public abstract ITextComponent getDisplayName()
boolean hasBanExpired()
hasBanExpired
in class UserListEntry<T>
protected void onSerialization(com.google.gson.JsonObject data)
onSerialization
in class UserListEntry<T>