Uses of Enum Class
net.minecraft.network.ConnectionProtocol
Package
Description
-
Uses of ConnectionProtocol in net.minecraft.network
Modifier and TypeMethodDescriptionProtocolInfo.id()
ProtocolInfo.Unbound.id()
PacketListener.protocol()
static ConnectionProtocol
Returns the enum constant of this class with the specified name.static ConnectionProtocol[]
ConnectionProtocol.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ConnectionProtocol in net.minecraft.network.protocol
Modifier and TypeFieldDescriptionprivate final ConnectionProtocol
ProtocolInfoBuilder.Implementation.id
The field for theid
record component.(package private) final ConnectionProtocol
ProtocolInfoBuilder.protocol
Modifier and TypeMethodDescriptionProtocolInfoBuilder.Implementation.id()
Returns the value of theid
record component.Modifier and TypeMethodDescriptionstatic <T extends ClientboundPacketListener,
B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<T, B> ProtocolInfoBuilder.clientboundProtocol
(ConnectionProtocol p_320428_, Consumer<ProtocolInfoBuilder<T, B>> p_320292_) private static <L extends PacketListener,
B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<L, B> ProtocolInfoBuilder.protocol
(ConnectionProtocol p_320849_, PacketFlow p_320146_, Consumer<ProtocolInfoBuilder<L, B>> p_320140_) static <T extends ServerboundPacketListener,
B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<T, B> ProtocolInfoBuilder.serverboundProtocol
(ConnectionProtocol p_319767_, Consumer<ProtocolInfoBuilder<T, B>> p_320799_) ModifierConstructorDescription(package private)
Implementation
(ConnectionProtocol id, PacketFlow flow, StreamCodec<io.netty.buffer.ByteBuf, Packet<? super L>> codec, BundlerInfo bundlerInfo) Creates an instance of aImplementation
record class.ProtocolInfoBuilder
(ConnectionProtocol p_320213_, PacketFlow p_320424_) -
Uses of ConnectionProtocol in net.minecraft.network.protocol.common.custom
Modifier and TypeMethodDescriptionstatic <B extends FriendlyByteBuf>
StreamCodec<B, CustomPacketPayload> CustomPacketPayload.codec
(CustomPacketPayload.FallbackProvider<B> p_319839_, List<CustomPacketPayload.TypeAndCodec<? super B, ?>> p_320495_, ConnectionProtocol protocol, PacketFlow packetFlow) -
Uses of ConnectionProtocol in net.minecraft.network.protocol.configuration
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientConfigurationPacketListener.protocol()
default ConnectionProtocol
ServerConfigurationPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientGamePacketListener.protocol()
default ConnectionProtocol
ServerGamePacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.handshake
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
ServerHandshakePacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.login
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientLoginPacketListener.protocol()
default ConnectionProtocol
ServerLoginPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.status
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientStatusPacketListener.protocol()
default ConnectionProtocol
ServerStatusPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.util.profiling.jfr
Modifier and TypeMethodDescriptionvoid
JfrProfiler.onPacketReceived
(ConnectionProtocol p_294286_, PacketType<?> p_320639_, SocketAddress p_185304_, int p_185302_) void
JvmProfiler.NoOpProfiler.onPacketReceived
(ConnectionProtocol p_296240_, PacketType<?> p_320930_, SocketAddress p_185365_, int p_185363_) void
JvmProfiler.onPacketReceived
(ConnectionProtocol p_294356_, PacketType<?> p_320354_, SocketAddress p_185345_, int p_185343_) void
JfrProfiler.onPacketSent
(ConnectionProtocol p_295940_, PacketType<?> p_320751_, SocketAddress p_185325_, int p_185323_) void
JvmProfiler.NoOpProfiler.onPacketSent
(ConnectionProtocol p_294630_, PacketType<?> p_319941_, SocketAddress p_185377_, int p_185375_) void
JvmProfiler.onPacketSent
(ConnectionProtocol p_295578_, PacketType<?> p_320775_, SocketAddress p_185353_, int p_185351_) -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.handling
Modifier and TypeMethodDescriptiondefault ConnectionProtocol
IPayloadContext.protocol()
Returns the protocol of the connection. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.payload
Modifier and TypeFieldDescriptionprivate final Map
<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> ModdedNetworkQueryPayload.queries
The field for thequeries
record component.Modifier and TypeMethodDescriptionModdedNetworkQueryPayload.queries()
Returns the value of thequeries
record component.Modifier and TypeMethodDescriptionstatic ModdedNetworkQueryPayload
ModdedNetworkQueryPayload.fromRegistry
(Map<ConnectionProtocol, Map<ResourceLocation, PayloadRegistration<?>>> registry) ModifierConstructorDescriptionCreates an instance of aModdedNetworkQueryPayload
record class. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.registration
Modifier and TypeFieldDescriptionprivate final Map
<ConnectionProtocol, Map<ResourceLocation, NetworkChannel>> NetworkPayloadSetup.channels
The field for thechannels
record component.private static final Map
<ConnectionProtocol, Map<ResourceLocation, PayloadRegistration<?>>> NetworkRegistry.PAYLOAD_REGISTRATIONS
Registry of all custom payload handlers.private final List
<ConnectionProtocol> PayloadRegistration.protocols
The field for theprotocols
record component.Modifier and TypeMethodDescriptionNetworkPayloadSetup.channels()
Returns the value of thechannels
record component.PayloadRegistration.protocols()
Returns the value of theprotocols
record component.Modifier and TypeMethodDescription@Nullable NetworkChannel
NetworkPayloadSetup.getChannel
(ConnectionProtocol protocol, ResourceLocation id) NetworkPayloadSetup.getChannels
(ConnectionProtocol protocol) static @Nullable StreamCodec
<? super FriendlyByteBuf, ? extends CustomPacketPayload> NetworkRegistry.getCodec
(ResourceLocation id, ConnectionProtocol protocol, PacketFlow flow) Attempts to retrieve theStreamCodec
for a non-vanilla payload.private static boolean
NetworkRegistry.hasAdhocChannel
(ConnectionProtocol protocol, ResourceLocation id, PacketFlow flow) Checks if a given payload is ad-hoc readable, that is, may be read without a negotiated channel being present.static boolean
NetworkRegistry.hasChannel
(Connection connection, @Nullable ConnectionProtocol protocol, ResourceLocation payloadId) Indicates whether the given connection has a connection setup that can transmit the given payload id.Modifier and TypeMethodDescriptionstatic NetworkPayloadSetup
NetworkPayloadSetup.from
(Map<ConnectionProtocol, NegotiationResult> results) Returns A modded network with the given configuration and play channels..static void
NetworkRegistry.initializeNeoForgeConnection
(ServerConfigurationPacketListener listener, Map<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> clientChannels) Invoked by the server when it completes the negotiation with the client during the configuration phase.static <T extends CustomPacketPayload,
B extends FriendlyByteBuf>
voidNetworkRegistry.register
(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Registers a new payload.private <T extends CustomPacketPayload,
B extends FriendlyByteBuf>
voidPayloadRegistrar.register
(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) ModifierConstructorDescriptionCreates an instance of aNetworkPayloadSetup
record class.PayloadRegistration
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Creates an instance of aPayloadRegistration
record class.