Package net.minecraft.client.multiplayer
Class ServerData
java.lang.Object
net.minecraft.client.multiplayer.ServerData
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate byte[]
private static final org.slf4j.Logger
private static final int
private ServerData.ServerPackStatus
long
int
private ServerData.State
private ServerData.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(ServerData p_105382_) void
copyNameIconFrom
(ServerData p_233804_) byte[]
boolean
isLan()
boolean
isRealm()
static ServerData
read
(CompoundTag p_105386_) void
setIconBytes
(byte[] p_272760_) void
setResourcePackStatus
(ServerData.ServerPackStatus p_105380_) void
setState
(ServerData.State p_316214_) state()
type()
static byte[]
validateIcon
(byte[] p_302394_) 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
-
playerList
-
packStatus
-
iconBytes
@Nullable private byte[] iconBytes -
type
-
state
-
neoForgeData
-
-
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() -
type
-
copyNameIconFrom
-
copyFrom
-
state
-
setState
-
validateIcon
@Nullable public static byte[] validateIcon(@Nullable byte[] p_302394_)
-