Uses of Class
net.minecraft.network.NetworkState
Package | Description |
---|---|
net.minecraft.network | |
net.minecraft.network.packet.c2s.handshake |
-
Uses of NetworkState in net.minecraft.network
Fields in net.minecraft.network declared as NetworkState Modifier and Type Field Description private static NetworkState[]
NetworkState. STATES
Fields in net.minecraft.network with type parameters of type NetworkState Modifier and Type Field Description private static Map<Class<? extends Packet<?>>,NetworkState>
NetworkState. HANDLER_STATE_MAP
static AttributeKey<NetworkState>
ClientConnection. PROTOCOL_ATTRIBUTE_KEY
The attribute key for the current network state of the backing netty channel.Methods in net.minecraft.network that return NetworkState Modifier and Type Method Description static @Nullable NetworkState
NetworkState. byId(int id)
static NetworkState
NetworkState. getPacketHandlerState(Packet<?> handler)
private NetworkState
ClientConnection. getState()
Returns the current network state of this connection.static NetworkState
NetworkState. valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkState[]
NetworkState. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.minecraft.network with parameters of type NetworkState Modifier and Type Method Description void
ClientConnection. setState(NetworkState state)
-
Uses of NetworkState in net.minecraft.network.packet.c2s.handshake
Fields in net.minecraft.network.packet.c2s.handshake declared as NetworkState Modifier and Type Field Description private NetworkState
HandshakeC2SPacket. intendedState
Methods in net.minecraft.network.packet.c2s.handshake that return NetworkState Modifier and Type Method Description NetworkState
HandshakeC2SPacket. getIntendedState()
Constructors in net.minecraft.network.packet.c2s.handshake with parameters of type NetworkState Constructor Description HandshakeC2SPacket(String address, int port, NetworkState intendedState)