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()PacketListener.protocol()static ConnectionProtocolReturns 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 ConnectionProtocolProtocolInfoBuilder.Implementation.idThe field for theidrecord component.private final ConnectionProtocolProtocolInfoBuilder.protocolMethods in net.minecraft.network.protocol that return ConnectionProtocolModifier and TypeMethodDescriptionProtocolInfoBuilder.Implementation.id()Returns the value of theidrecord component.Methods in net.minecraft.network.protocol with parameters of type ConnectionProtocolModifier and TypeMethodDescriptionstatic <T extends ClientboundPacketListener>
ProtocolInfo<T> ProtocolInfoBuilder.clientboundProtocol(ConnectionProtocol p_320428_, Consumer<ProtocolInfoBuilder<T, FriendlyByteBuf>> p_320292_) static <T extends ClientboundPacketListener,B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<T, B> ProtocolInfoBuilder.clientboundProtocolUnbound(ConnectionProtocol p_320864_, Consumer<ProtocolInfoBuilder<T, B>> p_320056_) private static <L extends PacketListener>
ProtocolInfo<L> ProtocolInfoBuilder.protocol(ConnectionProtocol p_319927_, PacketFlow p_320658_, Consumer<ProtocolInfoBuilder<L, FriendlyByteBuf>> p_320484_) private static <L extends PacketListener,B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<L, B> ProtocolInfoBuilder.protocolUnbound(ConnectionProtocol p_320849_, PacketFlow p_320146_, Consumer<ProtocolInfoBuilder<L, B>> p_320140_) static <T extends ServerboundPacketListener>
ProtocolInfo<T> ProtocolInfoBuilder.serverboundProtocol(ConnectionProtocol p_319767_, Consumer<ProtocolInfoBuilder<T, FriendlyByteBuf>> p_320799_) static <T extends ServerboundPacketListener,B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<T, B> ProtocolInfoBuilder.serverboundProtocolUnbound(ConnectionProtocol p_320741_, Consumer<ProtocolInfoBuilder<T, B>> p_320299_) 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 aImplementationrecord 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 ConnectionProtocolClientConfigurationPacketListener.protocol()default ConnectionProtocolServerConfigurationPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientGamePacketListener.protocol()default ConnectionProtocolServerGamePacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.handshake
Methods in net.minecraft.network.protocol.handshake that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolServerHandshakePacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.login
Methods in net.minecraft.network.protocol.login that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientLoginPacketListener.protocol()default ConnectionProtocolServerLoginPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.status
Methods in net.minecraft.network.protocol.status that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientStatusPacketListener.protocol()default ConnectionProtocolServerStatusPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.util.profiling.jfr
Methods in net.minecraft.util.profiling.jfr with parameters of type ConnectionProtocolModifier and TypeMethodDescriptionvoidJfrProfiler.onPacketReceived(ConnectionProtocol p_294286_, PacketType<?> p_320639_, SocketAddress p_185304_, int p_185302_) voidJvmProfiler.NoOpProfiler.onPacketReceived(ConnectionProtocol p_296240_, PacketType<?> p_320930_, SocketAddress p_185365_, int p_185363_) voidJvmProfiler.onPacketReceived(ConnectionProtocol p_294356_, PacketType<?> p_320354_, SocketAddress p_185345_, int p_185343_) voidJfrProfiler.onPacketSent(ConnectionProtocol p_295940_, PacketType<?> p_320751_, SocketAddress p_185325_, int p_185323_) voidJvmProfiler.NoOpProfiler.onPacketSent(ConnectionProtocol p_294630_, PacketType<?> p_319941_, SocketAddress p_185377_, int p_185375_) voidJvmProfiler.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 ConnectionProtocolIPayloadContext.protocol()Returns the protocol of the connection. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload with type parameters of type ConnectionProtocolModifier and TypeFieldDescriptionprivate final Map<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> ModdedNetworkQueryPayload.queriesThe field for thequeriesrecord component.Methods in net.neoforged.neoforge.network.payload that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionModdedNetworkQueryPayload.queries()Returns the value of thequeriesrecord component.Method parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifier and TypeMethodDescriptionstatic ModdedNetworkQueryPayloadModdedNetworkQueryPayload.fromRegistry(Map<ConnectionProtocol, Map<ResourceLocation, PayloadRegistration<?>>> registry) Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifierConstructorDescriptionCreates an instance of aModdedNetworkQueryPayloadrecord 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.channelsThe field for thechannelsrecord component.private static final Map<ConnectionProtocol, Map<ResourceLocation, PayloadRegistration<?>>> NetworkRegistry.PAYLOAD_REGISTRATIONSRegistry of all custom payload handlers.private final List<ConnectionProtocol> PayloadRegistration.protocolsThe field for theprotocolsrecord component.Methods in net.neoforged.neoforge.network.registration that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionNetworkPayloadSetup.channels()Returns the value of thechannelsrecord component.PayloadRegistration.protocols()Returns the value of theprotocolsrecord component.Methods in net.neoforged.neoforge.network.registration with parameters of type ConnectionProtocolModifier and TypeMethodDescription@Nullable NetworkChannelNetworkPayloadSetup.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 theStreamCodecfor a non-vanilla payload.private static booleanNetworkRegistry.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 booleanNetworkRegistry.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 NetworkPayloadSetupNetworkPayloadSetup.from(Map<ConnectionProtocol, NegotiationResult> results) Returns A modded network with the given configuration and play channels..static voidNetworkRegistry.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 aNetworkPayloadSetuprecord 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 aPayloadRegistrationrecord class.