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. STATESFields 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_MAPstatic AttributeKey<NetworkState>ClientConnection. PROTOCOL_ATTRIBUTE_KEYThe 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 NetworkStateNetworkState. byId(int id)static NetworkStateNetworkState. getPacketHandlerState(Packet<?> handler)private NetworkStateClientConnection. getState()Returns the current network state of this connection.static NetworkStateNetworkState. 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 voidClientConnection. 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 NetworkStateHandshakeC2SPacket. intendedStateMethods in net.minecraft.network.packet.c2s.handshake that return NetworkState Modifier and Type Method Description NetworkStateHandshakeC2SPacket. getIntendedState()Constructors in net.minecraft.network.packet.c2s.handshake with parameters of type NetworkState Constructor Description HandshakeC2SPacket(String address, int port, NetworkState intendedState)