Class ServerMetadata

java.lang.Object
net.minecraft.server.ServerMetadata

public class ServerMetadata extends Object
Represents metadata sent to the client. This describes the server's message of the day, online players and the protocol version.
Mappings:
Namespace Name
official aae
intermediary net/minecraft/class_2926
named net/minecraft/server/ServerMetadata
  • Field Details

    • FAVICON_WIDTH

      public static final int FAVICON_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a:I
      intermediary field_33375 Lnet/minecraft/class_2926;field_33375:I
      named FAVICON_WIDTH Lnet/minecraft/server/ServerMetadata;FAVICON_WIDTH:I
    • FAVICON_HEIGHT

      public static final int FAVICON_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Laae;b:I
      intermediary field_33376 Lnet/minecraft/class_2926;field_33376:I
      named FAVICON_HEIGHT Lnet/minecraft/server/ServerMetadata;FAVICON_HEIGHT:I
    • description

      @Nullable private @Nullable Text description
      Mappings:
      Namespace Name Mixin selector
      official c Laae;c:Lrq;
      intermediary field_13284 Lnet/minecraft/class_2926;field_13284:Lnet/minecraft/class_2561;
      named description Lnet/minecraft/server/ServerMetadata;description:Lnet/minecraft/text/Text;
    • players

      Mappings:
      Namespace Name Mixin selector
      official d Laae;d:Laae$a;
      intermediary field_13285 Lnet/minecraft/class_2926;field_13285:Lnet/minecraft/class_2926$class_2927;
      named players Lnet/minecraft/server/ServerMetadata;players:Lnet/minecraft/server/ServerMetadata$Players;
    • version

      Mappings:
      Namespace Name Mixin selector
      official e Laae;e:Laae$c;
      intermediary field_13286 Lnet/minecraft/class_2926;field_13286:Lnet/minecraft/class_2926$class_2930;
      named version Lnet/minecraft/server/ServerMetadata;version:Lnet/minecraft/server/ServerMetadata$Version;
    • favicon

      @Nullable private @Nullable String favicon
      Mappings:
      Namespace Name Mixin selector
      official f Laae;f:Ljava/lang/String;
      intermediary field_13283 Lnet/minecraft/class_2926;field_13283:Ljava/lang/String;
      named favicon Lnet/minecraft/server/ServerMetadata;favicon:Ljava/lang/String;
    • previewsChat

      private boolean previewsChat
      Mappings:
      Namespace Name Mixin selector
      official g Laae;g:Z
      intermediary field_39391 Lnet/minecraft/class_2926;field_39391:Z
      named previewsChat Lnet/minecraft/server/ServerMetadata;previewsChat:Z
    • secureChatEnforced

      private boolean secureChatEnforced
      Mappings:
      Namespace Name Mixin selector
      official h Laae;h:Z
      intermediary field_39914 Lnet/minecraft/class_2926;field_39914:Z
      named secureChatEnforced Lnet/minecraft/server/ServerMetadata;secureChatEnforced:Z
  • Constructor Details

    • ServerMetadata

      public ServerMetadata()
  • Method Details

    • getDescription

      @Nullable public @Nullable Text getDescription()
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a()Lrq;
      intermediary method_12680 Lnet/minecraft/class_2926;method_12680()Lnet/minecraft/class_2561;
      named getDescription Lnet/minecraft/server/ServerMetadata;getDescription()Lnet/minecraft/text/Text;
    • setDescription

      public void setDescription(Text description)
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a(Lrq;)V
      intermediary method_12684 Lnet/minecraft/class_2926;method_12684(Lnet/minecraft/class_2561;)V
      named setDescription Lnet/minecraft/server/ServerMetadata;setDescription(Lnet/minecraft/text/Text;)V
    • getPlayers

      Mappings:
      Namespace Name Mixin selector
      official b Laae;b()Laae$a;
      intermediary method_12682 Lnet/minecraft/class_2926;method_12682()Lnet/minecraft/class_2926$class_2927;
      named getPlayers Lnet/minecraft/server/ServerMetadata;getPlayers()Lnet/minecraft/server/ServerMetadata$Players;
    • setPlayers

      public void setPlayers(ServerMetadata.Players players)
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a(Laae$a;)V
      intermediary method_12681 Lnet/minecraft/class_2926;method_12681(Lnet/minecraft/class_2926$class_2927;)V
      named setPlayers Lnet/minecraft/server/ServerMetadata;setPlayers(Lnet/minecraft/server/ServerMetadata$Players;)V
    • getVersion

      Mappings:
      Namespace Name Mixin selector
      official c Laae;c()Laae$c;
      intermediary method_12683 Lnet/minecraft/class_2926;method_12683()Lnet/minecraft/class_2926$class_2930;
      named getVersion Lnet/minecraft/server/ServerMetadata;getVersion()Lnet/minecraft/server/ServerMetadata$Version;
    • setVersion

      public void setVersion(ServerMetadata.Version version)
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a(Laae$c;)V
      intermediary method_12679 Lnet/minecraft/class_2926;method_12679(Lnet/minecraft/class_2926$class_2930;)V
      named setVersion Lnet/minecraft/server/ServerMetadata;setVersion(Lnet/minecraft/server/ServerMetadata$Version;)V
    • setFavicon

      public void setFavicon(String favicon)
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a(Ljava/lang/String;)V
      intermediary method_12677 Lnet/minecraft/class_2926;method_12677(Ljava/lang/String;)V
      named setFavicon Lnet/minecraft/server/ServerMetadata;setFavicon(Ljava/lang/String;)V
    • getFavicon

      @Nullable public @Nullable String getFavicon()
      Mappings:
      Namespace Name Mixin selector
      official d Laae;d()Ljava/lang/String;
      intermediary method_12678 Lnet/minecraft/class_2926;method_12678()Ljava/lang/String;
      named getFavicon Lnet/minecraft/server/ServerMetadata;getFavicon()Ljava/lang/String;
    • setPreviewsChat

      public void setPreviewsChat(boolean previewsChat)
      Mappings:
      Namespace Name Mixin selector
      official a Laae;a(Z)V
      intermediary method_44138 Lnet/minecraft/class_2926;method_44138(Z)V
      named setPreviewsChat Lnet/minecraft/server/ServerMetadata;setPreviewsChat(Z)V
    • shouldPreviewChat

      public boolean shouldPreviewChat()
      Mappings:
      Namespace Name Mixin selector
      official e Laae;e()Z
      intermediary method_44139 Lnet/minecraft/class_2926;method_44139()Z
      named shouldPreviewChat Lnet/minecraft/server/ServerMetadata;shouldPreviewChat()Z
    • setSecureChatEnforced

      public void setSecureChatEnforced(boolean secureChatEnforced)
      Mappings:
      Namespace Name Mixin selector
      official b Laae;b(Z)V
      intermediary method_45050 Lnet/minecraft/class_2926;method_45050(Z)V
      named setSecureChatEnforced Lnet/minecraft/server/ServerMetadata;setSecureChatEnforced(Z)V
    • isSecureChatEnforced

      public boolean isSecureChatEnforced()
      Mappings:
      Namespace Name Mixin selector
      official f Laae;f()Z
      intermediary method_45051 Lnet/minecraft/class_2926;method_45051()Z
      named isSecureChatEnforced Lnet/minecraft/server/ServerMetadata;isSecureChatEnforced()Z