Class BanEntry<T>

java.lang.Object
net.minecraft.server.ServerConfigEntry<T>
net.minecraft.server.BanEntry<T>
Direct Known Subclasses:
BannedIpEntry, BannedPlayerEntry

public abstract class BanEntry<T>
extends ServerConfigEntry<T>
Mappings:
Namespace Name
official adf
intermediary net/minecraft/class_3309
named net/minecraft/server/BanEntry
  • Field Details

    • DATE_FORMAT

      public static final SimpleDateFormat DATE_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official a Ladf;a:Ljava/text/SimpleDateFormat;
      intermediary field_14308 Lnet/minecraft/class_3309;field_14308:Ljava/text/SimpleDateFormat;
      named DATE_FORMAT Lnet/minecraft/server/BanEntry;DATE_FORMAT:Ljava/text/SimpleDateFormat;
    • creationDate

      protected final Date creationDate
      Mappings:
      Namespace Name Mixin selector
      official b Ladf;b:Ljava/util/Date;
      intermediary field_14306 Lnet/minecraft/class_3309;field_14306:Ljava/util/Date;
      named creationDate Lnet/minecraft/server/BanEntry;creationDate:Ljava/util/Date;
    • source

      protected final String source
      Mappings:
      Namespace Name Mixin selector
      official c Ladf;c:Ljava/lang/String;
      intermediary field_14304 Lnet/minecraft/class_3309;field_14304:Ljava/lang/String;
      named source Lnet/minecraft/server/BanEntry;source:Ljava/lang/String;
    • expiryDate

      protected final Date expiryDate
      Mappings:
      Namespace Name Mixin selector
      official d Ladf;d:Ljava/util/Date;
      intermediary field_14305 Lnet/minecraft/class_3309;field_14305:Ljava/util/Date;
      named expiryDate Lnet/minecraft/server/BanEntry;expiryDate:Ljava/util/Date;
    • reason

      protected final String reason
      Mappings:
      Namespace Name Mixin selector
      official e Ladf;e:Ljava/lang/String;
      intermediary field_14307 Lnet/minecraft/class_3309;field_14307:Ljava/lang/String;
      named reason Lnet/minecraft/server/BanEntry;reason:Ljava/lang/String;
  • Constructor Details

    • BanEntry

      public BanEntry​(T key, @Nullable Date creationDate, @Nullable String source, @Nullable Date expiryDate, @Nullable String reason)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladf;<init>(Ljava/lang/Object;Ljava/util/Date;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_3309;<init>(Ljava/lang/Object;Ljava/util/Date;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;)V
      named <init> Lnet/minecraft/server/BanEntry;<init>(Ljava/lang/Object;Ljava/util/Date;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;)V
    • BanEntry

      protected BanEntry​(T key, JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladf;<init>(Ljava/lang/Object;Lcom/google/gson/JsonObject;)V
      intermediary <init> Lnet/minecraft/class_3309;<init>(Ljava/lang/Object;Lcom/google/gson/JsonObject;)V
      named <init> Lnet/minecraft/server/BanEntry;<init>(Ljava/lang/Object;Lcom/google/gson/JsonObject;)V
  • Method Details

    • getSource

      public String getSource()
      Mappings:
      Namespace Name Mixin selector
      official b Ladf;b()Ljava/lang/String;
      intermediary method_14501 Lnet/minecraft/class_3309;method_14501()Ljava/lang/String;
      named getSource Lnet/minecraft/server/BanEntry;getSource()Ljava/lang/String;
    • getExpiryDate

      public Date getExpiryDate()
      Mappings:
      Namespace Name Mixin selector
      official c Ladf;c()Ljava/util/Date;
      intermediary method_14502 Lnet/minecraft/class_3309;method_14502()Ljava/util/Date;
      named getExpiryDate Lnet/minecraft/server/BanEntry;getExpiryDate()Ljava/util/Date;
    • getReason

      public String getReason()
      Mappings:
      Namespace Name Mixin selector
      official d Ladf;d()Ljava/lang/String;
      intermediary method_14503 Lnet/minecraft/class_3309;method_14503()Ljava/lang/String;
      named getReason Lnet/minecraft/server/BanEntry;getReason()Ljava/lang/String;
    • toText

      public abstract Text toText()
      Mappings:
      Namespace Name Mixin selector
      official e Ladf;e()Loi;
      intermediary method_14504 Lnet/minecraft/class_3309;method_14504()Lnet/minecraft/class_2561;
      named toText Lnet/minecraft/server/BanEntry;toText()Lnet/minecraft/text/Text;
    • isInvalid

      boolean isInvalid()
      Overrides:
      isInvalid in class ServerConfigEntry<T>
      Mappings:
      Namespace Name Mixin selector
      official f Ladn;f()Z
      intermediary method_14627 Lnet/minecraft/class_3330;method_14627()Z
      named isInvalid Lnet/minecraft/server/ServerConfigEntry;isInvalid()Z
    • fromJson

      protected void fromJson​(JsonObject json)
      Specified by:
      fromJson in class ServerConfigEntry<T>
      Mappings:
      Namespace Name Mixin selector
      official a Ladn;a(Lcom/google/gson/JsonObject;)V
      intermediary method_24896 Lnet/minecraft/class_3330;method_24896(Lcom/google/gson/JsonObject;)V
      named fromJson Lnet/minecraft/server/ServerConfigEntry;fromJson(Lcom/google/gson/JsonObject;)V