Class BanEntry<T>

java.lang.Object
net.minecraft.server.management.UserListEntry<T>
net.minecraft.server.management.BanEntry<T>
Direct Known Subclasses:
IPBanEntry, ProfileBanEntry

public abstract class BanEntry<T> extends UserListEntry<T>
  • Field Details

    • DATE_FORMAT

      public static final SimpleDateFormat DATE_FORMAT
    • created

      protected final Date created
    • source

      protected final String source
    • expires

      protected final Date expires
    • reason

      protected final String reason
  • Constructor Details

    • BanEntry

      public BanEntry(T p_i46334_1_, @Nullable Date p_i46334_2_, @Nullable String p_i46334_3_, @Nullable Date p_i46334_4_, @Nullable String p_i46334_5_)
    • BanEntry

      protected BanEntry(T p_i1174_1_, com.google.gson.JsonObject p_i1174_2_)
  • Method Details

    • getSource

      public String getSource()
    • getExpires

      public Date getExpires()
    • getReason

      public String getReason()
    • getDisplayName

      public abstract ITextComponent getDisplayName()
    • hasExpired

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

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