Package net.minecraft.client.multiplayer
Class ServerData
java.lang.Object
net.minecraft.client.multiplayer.ServerData
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private byte[]
private static final org.slf4j.Logger
private static final int
private ServerData.ServerPackStatus
long
boolean
int
private ServerData.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(ServerData p_105382_) void
copyNameIconFrom
(ServerData p_233804_) boolean
byte[]
boolean
isLan()
boolean
isRealm()
static ServerData
read
(CompoundTag p_105386_) void
setEnforcesSecureChat
(boolean p_242972_) void
setIconBytes
(byte[] p_272760_) void
setResourcePackStatus
(ServerData.ServerPackStatus p_105380_) static byte[]
validateIcon
(byte[] p_301776_) write()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_ICON_SIZE
private static final int MAX_ICON_SIZE- See Also:
-
name
-
ip
-
status
-
motd
-
players
-
ping
public long ping -
protocol
public int protocol -
version
-
pinged
public boolean pinged -
playerList
-
packStatus
-
iconBytes
@Nullable private byte[] iconBytes -
type
-
enforcesSecureChat
private boolean enforcesSecureChat -
forgeData
-
-
Constructor Details
-
ServerData
-
-
Method Details
-
write
-
getResourcePackStatus
-
setResourcePackStatus
-
read
-
getIconBytes
@Nullable public byte[] getIconBytes() -
setIconBytes
public void setIconBytes(@Nullable byte[] p_272760_) -
isLan
public boolean isLan() -
isRealm
public boolean isRealm() -
setEnforcesSecureChat
public void setEnforcesSecureChat(boolean p_242972_) -
enforcesSecureChat
public boolean enforcesSecureChat() -
copyNameIconFrom
-
copyFrom
-
validateIcon
@Nullable public static byte[] validateIcon(@Nullable byte[] p_301776_)
-