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

  • 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

      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>