Uses of Enum Class
net.minecraft.network.NetworkPhase
Package
Description
-
Uses of NetworkPhase in net.minecraft.network
Modifier and TypeFieldDescriptionprivate final NetworkPhase
NetworkStateBuilder.NetworkStateImpl.id
The field for theid
record component.private final NetworkPhase
NetworkStateBuilder.type
Modifier and TypeMethodDescriptionNetworkState.id()
NetworkStateBuilder.NetworkStateImpl.id()
Returns the value of theid
record component.static NetworkPhase
Returns the enum constant of this class with the specified name.static NetworkPhase[]
NetworkPhase.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate static <L extends PacketListener>
NetworkState<L> NetworkStateBuilder.build
(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, PacketByteBuf>> registrar) private static <L extends PacketListener,
B extends ByteBuf>
NetworkState.Factory<L, B> NetworkStateBuilder.buildFactory
(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar) static <T extends ServerPacketListener>
NetworkState<T> NetworkStateBuilder.c2s
(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) static <T extends ServerPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> NetworkStateBuilder.c2sFactory
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) static <T extends ClientPacketListener>
NetworkState<T> NetworkStateBuilder.s2c
(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) static <T extends ClientPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> NetworkStateBuilder.s2cFactory
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) ModifierConstructorDescriptionNetworkStateBuilder
(NetworkPhase type, NetworkSide side) (package private)
NetworkStateImpl
(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable PacketBundleHandler packetBundleHandler) -
Uses of NetworkPhase in net.minecraft.network.listener
Modifier and TypeMethodDescriptiondefault NetworkPhase
ClientConfigurationPacketListener.getPhase()
default NetworkPhase
ClientLoginPacketListener.getPhase()
default NetworkPhase
ClientPlayPacketListener.getPhase()
default NetworkPhase
ClientQueryPacketListener.getPhase()
PacketListener.getPhase()
default NetworkPhase
ServerConfigurationPacketListener.getPhase()
default NetworkPhase
ServerHandshakePacketListener.getPhase()
default NetworkPhase
ServerLoginPacketListener.getPhase()
default NetworkPhase
ServerPlayPacketListener.getPhase()
default NetworkPhase
ServerQueryPacketListener.getPhase()
-
Uses of NetworkPhase in net.minecraft.util.profiling.jfr
Modifier and TypeMethodDescriptionvoid
FlightProfiler.NoopProfiler.onPacketReceived
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes) void
FlightProfiler.onPacketReceived
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes) void
JfrProfiler.onPacketReceived
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes) void
FlightProfiler.NoopProfiler.onPacketSent
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes) void
FlightProfiler.onPacketSent
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes) void
JfrProfiler.onPacketSent
(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes)