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
named net/minecraft/server/BanEntry
intermediary net/minecraft/class_3309
official awd
  • Field Details

    • DATE_FORMAT

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

      public static final String FOREVER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FOREVER Lnet/minecraft/server/BanEntry;FOREVER:Ljava/lang/String;
      intermediary field_29787 Lnet/minecraft/class_3309;field_29787:Ljava/lang/String;
      official b Lawd;b:Ljava/lang/String;
    • creationDate

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

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

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

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

    • BanEntry

      public BanEntry(@Nullable T key, @Nullable @Nullable Date creationDate, @Nullable @Nullable String source, @Nullable @Nullable Date expiryDate, @Nullable @Nullable String reason)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/BanEntry;<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
      official <init> Lawd;<init>(Ljava/lang/Object;Ljava/util/Date;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;)V
    • BanEntry

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

    • getCreationDate

      public Date getCreationDate()
      Mappings:
      Namespace Name Mixin selector
      named getCreationDate Lnet/minecraft/server/BanEntry;getCreationDate()Ljava/util/Date;
      intermediary method_34885 Lnet/minecraft/class_3309;method_34885()Ljava/util/Date;
      official a Lawd;a()Ljava/util/Date;
    • getSource

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

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

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

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

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

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