Uses of Enum Class
net.minecraft.network.protocol.PacketFlow
Package
Description
-
Uses of PacketFlow in net.minecraft.network
Modifier and TypeMethodDescriptiondefault PacketFlow
ClientboundPacketListener.flow()
PacketListener.flow()
ProtocolInfo.flow()
default PacketFlow
ServerboundPacketListener.flow()
Connection.getDirection()
Connection.getReceiving()
Connection.getSending()
Modifier and TypeMethodDescriptionstatic void
Connection.configureInMemoryPipeline
(io.netty.channel.ChannelPipeline p_295541_, PacketFlow p_294540_) static void
Connection.configureSerialization
(io.netty.channel.ChannelPipeline p_265436_, PacketFlow p_265104_, boolean p_341592_, BandwidthDebugMonitor p_299246_) -
Uses of PacketFlow in net.minecraft.network.protocol
Modifier and TypeFieldDescriptionprivate final PacketFlow
PacketType.flow
The field for theflow
record component.private final PacketFlow
ProtocolCodecBuilder.flow
private final PacketFlow
ProtocolInfoBuilder.flow
private final PacketFlow
ProtocolInfoBuilder.Implementation.flow
The field for theflow
record component.Modifier and TypeMethodDescriptionPacketType.flow()
Returns the value of theflow
record component.ProtocolInfoBuilder.Implementation.flow()
Returns the value of theflow
record component.PacketFlow.getOpposite()
static PacketFlow
Returns the enum constant of this class with the specified name.static PacketFlow[]
PacketFlow.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate 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_) 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.PacketType
(PacketFlow flow, ResourceLocation id) Creates an instance of aPacketType
record class.ProtocolCodecBuilder
(PacketFlow p_320925_) ProtocolInfoBuilder
(ConnectionProtocol p_320213_, PacketFlow p_320424_) -
Uses of PacketFlow 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 PacketFlow in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault PacketFlow
IPacketFlowExtension.self()
Returns thePacketFlow
this extension is applied to. -
Uses of PacketFlow in net.neoforged.neoforge.network.filters
Modifier and TypeMethodDescriptionprivate static Packet
<?> GenericPacketSplitter.createPacket
(PacketFlow flow, byte[] payload) -
Uses of PacketFlow in net.neoforged.neoforge.network.handling
-
Uses of PacketFlow in net.neoforged.neoforge.network.negotiation
Modifier and TypeFieldDescriptionprivate final Optional
<PacketFlow> NegotiableNetworkComponent.flow
The field for theflow
record component.Modifier and TypeMethodDescriptionNegotiableNetworkComponent.flow()
Returns the value of theflow
record component.ModifierConstructorDescriptionNegotiableNetworkComponent
(ResourceLocation id, String version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aNegotiableNetworkComponent
record class. -
Uses of PacketFlow in net.neoforged.neoforge.network.payload
Modifier and TypeFieldDescriptionprivate final Optional
<PacketFlow> ModdedNetworkQueryComponent.flow
The field for theflow
record component.Modifier and TypeMethodDescriptionModdedNetworkQueryComponent.flow()
Returns the value of theflow
record component.ModifierConstructorDescriptionModdedNetworkQueryComponent
(ResourceLocation id, String version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aModdedNetworkQueryComponent
record class. -
Uses of PacketFlow in net.neoforged.neoforge.network.registration
Modifier and TypeFieldDescriptionprivate static final io.netty.util.AttributeKey
<PacketFlow> NetworkRegistry.ATTRIBUTE_FLOW
private final Optional
<PacketFlow> PayloadRegistration.flow
The field for theflow
record component.Modifier and TypeMethodDescriptionPayloadRegistration.flow()
Returns the value of theflow
record component.Modifier and TypeMethodDescriptionstatic @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> NetworkRegistry.getInitialListeningChannels
(PacketFlow flow) Returns the initial channels for the configuration phase..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.boolean
PayloadRegistration.matchesFlow
(PacketFlow flow) Returns true if the registered flow is compatible with the passed flow.Modifier and TypeMethodDescriptionstatic <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) ModifierConstructorDescriptionPayloadRegistration
(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.