CLASS net/minecraft/class_642 net/minecraft/client/network/ServerInfo COMMENT The information of a server entry in the list of servers available in COMMENT the multiplayer screen from the menu. The list of these servers is COMMENT stored in the {@code servers.dat} file within the client game directory. FIELD field_3752 name Ljava/lang/String; FIELD field_3753 playerCountLabel Lnet/minecraft/class_2561; FIELD field_3754 online Z FIELD field_3755 resourcePackPolicy Lnet/minecraft/class_642$class_643; FIELD field_3756 protocolVersion I FIELD field_3757 label Lnet/minecraft/class_2561; FIELD field_3758 ping J FIELD field_3759 icon Ljava/lang/String; FIELD field_3760 version Lnet/minecraft/class_2561; FIELD field_3761 address Ljava/lang/String; FIELD field_3762 playerListSummary Ljava/util/List; FIELD field_3763 local Z FIELD field_39355 LOGGER Lorg/slf4j/Logger; FIELD field_39356 chatPreview Lnet/minecraft/class_642$class_7484; METHOD (Ljava/lang/String;Ljava/lang/String;Z)V ARG 1 name ARG 2 address ARG 3 local METHOD method_2989 setIcon (Ljava/lang/String;)V ARG 1 icon METHOD method_2990 getResourcePackPolicy ()Lnet/minecraft/class_642$class_643; COMMENT {@return the policy on resource packs sent by this server} METHOD method_2991 getIcon ()Ljava/lang/String; METHOD method_2992 toNbt ()Lnet/minecraft/class_2487; METHOD method_2993 fromNbt (Lnet/minecraft/class_2487;)Lnet/minecraft/class_642; ARG 0 root METHOD method_2994 isLocal ()Z METHOD method_2995 setResourcePackPolicy (Lnet/minecraft/class_642$class_643;)V COMMENT Sets the resource pack policy on this server. COMMENT COMMENT

This is called when a user has responded to the prompt on whether to COMMENT accept server resource packs from this server in the future. ARG 1 resourcePackPolicy METHOD method_2996 copyFrom (Lnet/minecraft/class_642;)V ARG 1 serverInfo METHOD method_44077 (Lnet/minecraft/class_642;Lnet/minecraft/class_642$class_7484;)V ARG 1 chatPreview METHOD method_44078 parseFavicon (Ljava/lang/String;)Ljava/lang/String; ARG 0 favicon METHOD method_44079 (Lnet/minecraft/class_2487;Lnet/minecraft/class_2520;)V ARG 1 chatPreview METHOD method_44080 setPreviewsChat (Z)V COMMENT Sets whether the chat preview is enabled. ARG 1 enabled METHOD method_44081 getChatPreview ()Lnet/minecraft/class_642$class_7484; METHOD method_44082 shouldPreviewChat ()Z CLASS class_643 ResourcePackPolicy COMMENT The policy of the client when this server sends a {@linkplain COMMENT net.minecraft.network.packet.s2c.play.ResourcePackSendS2CPacket server COMMENT resource pack}. COMMENT COMMENT @see ServerInfo#getResourcePackPolicy() FIELD field_3764 DISABLED Lnet/minecraft/class_642$class_643; COMMENT Always rejects the resource pack. FIELD field_3765 name Lnet/minecraft/class_2561; FIELD field_3766 RESOURCE_PACK_POLICIES [Lnet/minecraft/class_642$class_643; FIELD field_3767 PROMPT Lnet/minecraft/class_642$class_643; COMMENT Opens a screen on whether to always accept or reject resource packs from COMMENT this server for the current pack or any pack in the future. FIELD field_3768 ENABLED Lnet/minecraft/class_642$class_643; COMMENT Always accepts the resource pack and starts downloading it. METHOD (Ljava/lang/String;ILjava/lang/String;)V ARG 3 name METHOD method_2997 getName ()Lnet/minecraft/class_2561; CLASS class_7484 ChatPreview FIELD field_39357 CODEC Lcom/mojang/serialization/Codec; FIELD field_39358 acknowledged Z FIELD field_39359 toastShown Z METHOD (ZZ)V ARG 1 acknowledged ARG 2 toastShown METHOD method_44083 setAcknowledged ()V METHOD method_44084 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App; ARG 0 instance METHOD method_44085 (Lnet/minecraft/class_642$class_7484;)Ljava/lang/Boolean; ARG 0 chatPreview METHOD method_44086 showToast ()Z COMMENT If the chat preview toast is never shown, returns {@code true} and marks that the COMMENT toast was shown; otherwise, returns {@code false}. METHOD method_44087 (Lnet/minecraft/class_642$class_7484;)Ljava/lang/Boolean; ARG 0 chatPreview METHOD method_44088 isAcknowledged ()Z COMMENT {@return whether the player acknowledged the chat preview warning} METHOD method_44089 copy ()Lnet/minecraft/class_642$class_7484;