Package net.minecraft.client.network
Class ServerInfo
java.lang.Object
net.minecraft.client.network.ServerInfo
The information of a server entry in the list of servers available in
the multiplayer screen from the menu. The list of these servers is
stored in the
servers.dat file within the client game directory.- Mappings:
Namespace Name official etpintermediary net/minecraft/class_642named net/minecraft/client/network/ServerInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe policy of the client when this server sends a server resource pack. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable ServerInfo.ChatPreviewprivate booleanprivate booleanprivate static final org.slf4j.Loggerbooleanlongintprivate ServerInfo.ResourcePackPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(ServerInfo serverInfo) static ServerInfofromNbt(NbtCompound root) getIcon()Returns the policy on resource packs sent by this server.booleanisLocal()voidmethod_44292(ServerInfo serverInfo) voidmethod_44293(boolean bool) static StringparseFavicon(String favicon) voidvoidsetPreviewsChat(boolean enabled) Sets whether the chat preview is enabled.voidsetResourcePackPolicy(ServerInfo.ResourcePackPolicy resourcePackPolicy) Sets the resource pack policy on this server.booleantoNbt()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official jLetp;j:Lorg/slf4j/Logger;intermediary field_39355Lnet/minecraft/class_642;field_39355:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/network/ServerInfo;LOGGER:Lorg/slf4j/Logger;
-
name
- Mappings:
Namespace Name Mixin selector official aLetp;a:Ljava/lang/String;intermediary field_3752Lnet/minecraft/class_642;field_3752:Ljava/lang/String;named nameLnet/minecraft/client/network/ServerInfo;name:Ljava/lang/String;
-
address
- Mappings:
Namespace Name Mixin selector official bLetp;b:Ljava/lang/String;intermediary field_3761Lnet/minecraft/class_642;field_3761:Ljava/lang/String;named addressLnet/minecraft/client/network/ServerInfo;address:Ljava/lang/String;
-
playerCountLabel
- Mappings:
Namespace Name Mixin selector official cLetp;c:Lrm;intermediary field_3753Lnet/minecraft/class_642;field_3753:Lnet/minecraft/class_2561;named playerCountLabelLnet/minecraft/client/network/ServerInfo;playerCountLabel:Lnet/minecraft/text/Text;
-
label
- Mappings:
Namespace Name Mixin selector official dLetp;d:Lrm;intermediary field_3757Lnet/minecraft/class_642;field_3757:Lnet/minecraft/class_2561;named labelLnet/minecraft/client/network/ServerInfo;label:Lnet/minecraft/text/Text;
-
ping
public long ping- Mappings:
Namespace Name Mixin selector official eLetp;e:Jintermediary field_3758Lnet/minecraft/class_642;field_3758:Jnamed pingLnet/minecraft/client/network/ServerInfo;ping:J
-
protocolVersion
public int protocolVersion- Mappings:
Namespace Name Mixin selector official fLetp;f:Iintermediary field_3756Lnet/minecraft/class_642;field_3756:Inamed protocolVersionLnet/minecraft/client/network/ServerInfo;protocolVersion:I
-
version
- Mappings:
Namespace Name Mixin selector official gLetp;g:Lrm;intermediary field_3760Lnet/minecraft/class_642;field_3760:Lnet/minecraft/class_2561;named versionLnet/minecraft/client/network/ServerInfo;version:Lnet/minecraft/text/Text;
-
online
public boolean online- Mappings:
Namespace Name Mixin selector official hLetp;h:Zintermediary field_3754Lnet/minecraft/class_642;field_3754:Znamed onlineLnet/minecraft/client/network/ServerInfo;online:Z
-
playerListSummary
- Mappings:
Namespace Name Mixin selector official iLetp;i:Ljava/util/List;intermediary field_3762Lnet/minecraft/class_642;field_3762:Ljava/util/List;named playerListSummaryLnet/minecraft/client/network/ServerInfo;playerListSummary:Ljava/util/List;
-
resourcePackPolicy
- Mappings:
Namespace Name Mixin selector official kLetp;k:Letp$b;intermediary field_3755Lnet/minecraft/class_642;field_3755:Lnet/minecraft/class_642$class_643;named resourcePackPolicyLnet/minecraft/client/network/ServerInfo;resourcePackPolicy:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
-
icon
- Mappings:
Namespace Name Mixin selector official lLetp;l:Ljava/lang/String;intermediary field_3759Lnet/minecraft/class_642;field_3759:Ljava/lang/String;named iconLnet/minecraft/client/network/ServerInfo;icon:Ljava/lang/String;
-
local
private boolean local- Mappings:
Namespace Name Mixin selector official mLetp;m:Zintermediary field_3763Lnet/minecraft/class_642;field_3763:Znamed localLnet/minecraft/client/network/ServerInfo;local:Z
-
chatPreview
- Mappings:
Namespace Name Mixin selector official nLetp;n:Letp$a;intermediary field_39356Lnet/minecraft/class_642;field_39356:Lnet/minecraft/class_642$class_7484;named chatPreviewLnet/minecraft/client/network/ServerInfo;chatPreview:Lnet/minecraft/client/network/ServerInfo$ChatPreview;
-
field_39436
private boolean field_39436- Mappings:
Namespace Name Mixin selector official oLetp;o:Zintermediary field_39436Lnet/minecraft/class_642;field_39436:Znamed field_39436Lnet/minecraft/client/network/ServerInfo;field_39436:Z
-
-
Constructor Details
-
ServerInfo
- Mappings:
Namespace Name Mixin selector official <init>Letp;<init>(Ljava/lang/String;Ljava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_642;<init>(Ljava/lang/String;Ljava/lang/String;Z)Vnamed <init>Lnet/minecraft/client/network/ServerInfo;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
-
-
Method Details
-
toNbt
- Mappings:
Namespace Name Mixin selector official aLetp;a()Lpj;intermediary method_2992Lnet/minecraft/class_642;method_2992()Lnet/minecraft/class_2487;named toNbtLnet/minecraft/client/network/ServerInfo;toNbt()Lnet/minecraft/nbt/NbtCompound;
-
getResourcePackPolicy
Returns the policy on resource packs sent by this server.- Returns:
- the policy on resource packs sent by this server
- Mappings:
Namespace Name Mixin selector official bLetp;b()Letp$b;intermediary method_2990Lnet/minecraft/class_642;method_2990()Lnet/minecraft/class_642$class_643;named getResourcePackPolicyLnet/minecraft/client/network/ServerInfo;getResourcePackPolicy()Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
-
setResourcePackPolicy
Sets the resource pack policy on this server.This is called when a user has responded to the prompt on whether to accept server resource packs from this server in the future.
- Mappings:
Namespace Name Mixin selector official aLetp;a(Letp$b;)Vintermediary method_2995Lnet/minecraft/class_642;method_2995(Lnet/minecraft/class_642$class_643;)Vnamed setResourcePackPolicyLnet/minecraft/client/network/ServerInfo;setResourcePackPolicy(Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;)V
-
fromNbt
- Mappings:
Namespace Name Mixin selector official aLetp;a(Lpj;)Letp;intermediary method_2993Lnet/minecraft/class_642;method_2993(Lnet/minecraft/class_2487;)Lnet/minecraft/class_642;named fromNbtLnet/minecraft/client/network/ServerInfo;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/client/network/ServerInfo;
-
getIcon
- Mappings:
Namespace Name Mixin selector official cLetp;c()Ljava/lang/String;intermediary method_2991Lnet/minecraft/class_642;method_2991()Ljava/lang/String;named getIconLnet/minecraft/client/network/ServerInfo;getIcon()Ljava/lang/String;
-
parseFavicon
- Throws:
ParseException- Mappings:
Namespace Name Mixin selector official aLetp;a(Ljava/lang/String;)Ljava/lang/String;intermediary method_44078Lnet/minecraft/class_642;method_44078(Ljava/lang/String;)Ljava/lang/String;named parseFaviconLnet/minecraft/client/network/ServerInfo;parseFavicon(Ljava/lang/String;)Ljava/lang/String;
-
setIcon
- Mappings:
Namespace Name Mixin selector official bLetp;b(Ljava/lang/String;)Vintermediary method_2989Lnet/minecraft/class_642;method_2989(Ljava/lang/String;)Vnamed setIconLnet/minecraft/client/network/ServerInfo;setIcon(Ljava/lang/String;)V
-
isLocal
public boolean isLocal()- Mappings:
Namespace Name Mixin selector official dLetp;d()Zintermediary method_2994Lnet/minecraft/class_642;method_2994()Znamed isLocalLnet/minecraft/client/network/ServerInfo;isLocal()Z
-
setPreviewsChat
public void setPreviewsChat(boolean enabled) Sets whether the chat preview is enabled.- Mappings:
Namespace Name Mixin selector official aLetp;a(Z)Vintermediary method_44080Lnet/minecraft/class_642;method_44080(Z)Vnamed setPreviewsChatLnet/minecraft/client/network/ServerInfo;setPreviewsChat(Z)V
-
getChatPreview
- Mappings:
Namespace Name Mixin selector official eLetp;e()Letp$a;intermediary method_44081Lnet/minecraft/class_642;method_44081()Lnet/minecraft/class_642$class_7484;named getChatPreviewLnet/minecraft/client/network/ServerInfo;getChatPreview()Lnet/minecraft/client/network/ServerInfo$ChatPreview;
-
method_44293
public void method_44293(boolean bool) - Mappings:
Namespace Name Mixin selector official bLetp;b(Z)Vintermediary method_44293Lnet/minecraft/class_642;method_44293(Z)Vnamed method_44293Lnet/minecraft/client/network/ServerInfo;method_44293(Z)V
-
shouldPreviewChat
public boolean shouldPreviewChat()- Mappings:
Namespace Name Mixin selector official fLetp;f()Zintermediary method_44082Lnet/minecraft/class_642;method_44082()Znamed shouldPreviewChatLnet/minecraft/client/network/ServerInfo;shouldPreviewChat()Z
-
method_44292
- Mappings:
Namespace Name Mixin selector official aLetp;a(Letp;)Vintermediary method_44292Lnet/minecraft/class_642;method_44292(Lnet/minecraft/class_642;)Vnamed method_44292Lnet/minecraft/client/network/ServerInfo;method_44292(Lnet/minecraft/client/network/ServerInfo;)V
-
copyFrom
- Mappings:
Namespace Name Mixin selector official bLetp;b(Letp;)Vintermediary method_2996Lnet/minecraft/class_642;method_2996(Lnet/minecraft/class_642;)Vnamed copyFromLnet/minecraft/client/network/ServerInfo;copyFrom(Lnet/minecraft/client/network/ServerInfo;)V
-