Class BanListEntry<T>

java.lang.Object
net.minecraft.server.players.StoredUserEntry<T>
net.minecraft.server.players.BanListEntry<T>
Direct Known Subclasses:
IpBanListEntry, UserBanListEntry

public abstract class BanListEntry<T> extends StoredUserEntry<T>
  • Field Details

    • DATE_FORMAT

      public static final SimpleDateFormat DATE_FORMAT
    • EXPIRES_NEVER

      public static final String EXPIRES_NEVER
      See Also:
    • created

      protected final Date created
    • source

      protected final String source
    • expires

      @Nullable protected final Date expires
    • reason

      protected final String reason
  • Constructor Details

    • BanListEntry

      public BanListEntry(T p_10953_, @Nullable Date p_10954_, @Nullable String p_10955_, @Nullable Date p_10956_, @Nullable String p_10957_)
    • BanListEntry

      protected BanListEntry(T p_10950_, com.google.gson.JsonObject p_10951_)
  • Method Details

    • getCreated

      public Date getCreated()
    • getSource

      public String getSource()
    • getExpires

      @Nullable public Date getExpires()
    • getReason

      public String getReason()
    • getDisplayName

      public abstract Component getDisplayName()
    • hasExpired

      boolean hasExpired()
      Overrides:
      hasExpired in class StoredUserEntry<T>
    • serialize

      protected void serialize(com.google.gson.JsonObject p_10959_)
      Specified by:
      serialize in class StoredUserEntry<T>