Uses of Enum Class
net.minecraft.network.ConnectionProtocol
Packages that use ConnectionProtocol
Package
Description
-
Uses of ConnectionProtocol in net.minecraft.network
Methods in net.minecraft.network that return ConnectionProtocolModifier 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
Fields in net.minecraft.network.protocol declared as ConnectionProtocolModifier and TypeFieldDescriptionprivate final ConnectionProtocol
ProtocolInfoBuilder.Implementation.id
The field for theid
record component.(package private) final ConnectionProtocol
ProtocolInfoBuilder.protocol
Methods in net.minecraft.network.protocol that return ConnectionProtocolModifier and TypeMethodDescriptionProtocolInfoBuilder.Implementation.id()
Returns the value of theid
record component.Methods in net.minecraft.network.protocol with parameters of type ConnectionProtocolModifier 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_) Constructors in net.minecraft.network.protocol with parameters of type ConnectionProtocolModifierConstructorDescription(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
Methods in net.minecraft.network.protocol.common.custom with parameters of type ConnectionProtocolModifier 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
Methods in net.minecraft.network.protocol.configuration that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientConfigurationPacketListener.protocol()
default ConnectionProtocol
ServerConfigurationPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientGamePacketListener.protocol()
default ConnectionProtocol
ServerGamePacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.handshake
Methods in net.minecraft.network.protocol.handshake that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
ServerHandshakePacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.login
Methods in net.minecraft.network.protocol.login that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientLoginPacketListener.protocol()
default ConnectionProtocol
ServerLoginPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.network.protocol.status
Methods in net.minecraft.network.protocol.status that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
ClientStatusPacketListener.protocol()
default ConnectionProtocol
ServerStatusPacketListener.protocol()
-
Uses of ConnectionProtocol in net.minecraft.util.profiling.jfr
Methods in net.minecraft.util.profiling.jfr with parameters of type ConnectionProtocolModifier 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
Methods in net.neoforged.neoforge.network.handling that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocol
IPayloadContext.protocol()
Returns the protocol of the connection. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload declared as ConnectionProtocolModifier and TypeFieldDescriptionprivate final ConnectionProtocol
CommonRegisterPayload.protocol
The field for theprotocol
record component.Fields in net.neoforged.neoforge.network.payload with type parameters of type ConnectionProtocolModifier and TypeFieldDescriptionprivate final Map
<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> ModdedNetworkQueryPayload.queries
The field for thequeries
record component.Methods in net.neoforged.neoforge.network.payload that return ConnectionProtocolModifier and TypeMethodDescriptionCommonRegisterPayload.protocol()
Returns the value of theprotocol
record component.private static @Nullable ConnectionProtocol
CommonRegisterPayload.protocolById
(String id) Methods in net.neoforged.neoforge.network.payload that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionModdedNetworkQueryPayload.queries()
Returns the value of thequeries
record component.Method parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifier and TypeMethodDescriptionstatic ModdedNetworkQueryPayload
ModdedNetworkQueryPayload.fromRegistry
(Map<ConnectionProtocol, Map<ResourceLocation, PayloadRegistration<?>>> registry) Constructors in net.neoforged.neoforge.network.payload with parameters of type ConnectionProtocolModifierConstructorDescriptionCommonRegisterPayload
(int version, ConnectionProtocol protocol, Set<ResourceLocation> channels) Creates an instance of aCommonRegisterPayload
record class.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifierConstructorDescriptionCreates an instance of aModdedNetworkQueryPayload
record class. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.registration
Fields in net.neoforged.neoforge.network.registration with type parameters of type ConnectionProtocolModifier and TypeFieldDescriptionprivate final Map
<ConnectionProtocol, Map<ResourceLocation, NetworkChannel>> NetworkPayloadSetup.channels
The field for thechannels
record component.static final io.netty.util.AttributeKey
<Map<ConnectionProtocol, Set<ResourceLocation>>> ChannelAttributes.COMMON_CHANNELS
Known common channels fromCommonRegisterPayload
.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.Methods in net.neoforged.neoforge.network.registration that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionNetworkPayloadSetup.channels()
Returns the value of thechannels
record component.PayloadRegistration.protocols()
Returns the value of theprotocols
record component.Methods in net.neoforged.neoforge.network.registration with parameters of type ConnectionProtocolModifier 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.static Set
<ResourceLocation> ChannelAttributes.getOrCreateCommonChannels
(Connection connection, ConnectionProtocol protocol) Returns a mutable set of the currently known common channels for the given protocol.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.Method parameters in net.neoforged.neoforge.network.registration with type arguments of type ConnectionProtocolModifier 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) Constructor parameters in net.neoforged.neoforge.network.registration with type arguments of type ConnectionProtocolModifierConstructorDescriptionCreates 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.