Uses of Enum Class
net.minecraft.network.NetworkState
-
Uses of NetworkState in net.minecraft.network
Modifier and TypeFieldDescriptionprivate static final Map<Class<? extends Packet<?>>,
NetworkState> NetworkState.HANDLER_STATE_MAP
static final AttributeKey<NetworkState>
ClientConnection.PROTOCOL_ATTRIBUTE_KEY
The attribute key for the current network state of the backing netty channel.Modifier and TypeMethodDescriptionstatic @Nullable NetworkState
NetworkState.byId
(int id) static @Nullable NetworkState
NetworkState.getPacketHandlerState
(Packet<?> handler) private NetworkState
ClientConnection.getState()
Returns the current network state of this connection.static NetworkState
Returns the enum constant of this class with the specified name.static NetworkState[]
NetworkState.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate void
ClientConnection.sendInternal
(Packet<?> packet, @Nullable PacketCallbacks callbacks, NetworkState packetState, NetworkState currentState) void
ClientConnection.setState
(NetworkState state) -
Uses of NetworkState in net.minecraft.network.packet.c2s.handshake
ModifierConstructorDescriptionHandshakeC2SPacket
(String address, int port, NetworkState intendedState)