Uses of Enum Class
net.minecraftforge.fml.network.NetworkDirection
-
Uses of NetworkDirection in net.minecraftforge.fml.network
Modifier and TypeFieldDescriptionprivate final NetworkDirection
FMLHandshakeHandler.direction
private final NetworkDirection
PacketDistributor.direction
private final NetworkDirection
NetworkEvent.Context.networkDirection
TheNetworkDirection
this message has been received on.Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends IPacket>,
NetworkDirection> NetworkDirection.packetLookup
Modifier and TypeMethodDescriptionstatic <T extends ICustomPacket<?>>
NetworkDirectionNetworkDirection.directionFor
(Class<T> customPacket) default NetworkDirection
ICustomPacket.getDirection()
NetworkEvent.Context.getDirection()
PacketDistributor.PacketTarget.getDirection()
NetworkDirection.reply()
static NetworkDirection
Returns the enum constant of this class with the specified name.static NetworkDirection[]
NetworkDirection.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescription(package private) boolean
NetworkInstance.dispatch
(NetworkDirection side, ICustomPacket<?> packet, NetworkManager manager) (package private) static List<NetworkRegistry.LoginPayload>
NetworkRegistry.gatherLoginPayloads
(NetworkDirection direction, boolean isLocal) Retrieve theNetworkRegistry.LoginPayload
list for dispatch duringFMLHandshakeHandler.tickLogin(NetworkManager)
handling.(package private) static void
FMLHandshakeHandler.registerHandshake
(NetworkManager manager, NetworkDirection direction) Create a new handshake instance.void
FMLMCRegisterPacketHandler.sendRegistry
(NetworkManager manager, NetworkDirection dir) static void
NetworkHooks.validatePacketDirection
(NetworkDirection packetDirection, Optional<NetworkDirection> expectedDirection, NetworkManager connection) Modifier and TypeMethodDescriptionstatic void
NetworkHooks.validatePacketDirection
(NetworkDirection packetDirection, Optional<NetworkDirection> expectedDirection, NetworkManager connection) ModifierConstructorDescription(package private)
Context
(NetworkManager netHandler, NetworkDirection networkDirection, int index) (package private)
Context
(NetworkManager networkManager, NetworkDirection networkDirection, PacketDispatcher dispatcher) private
FMLHandshakeHandler
(NetworkManager networkManager, NetworkDirection side) PacketDistributor
(BiFunction<PacketDistributor<T>, Supplier<T>, Consumer<IPacket<?>>> functor, NetworkDirection direction) -
Uses of NetworkDirection in net.minecraftforge.fml.network.simple
Modifier and TypeFieldDescriptionprivate final Optional<NetworkDirection>
IndexedMessageCodec.MessageHandler.networkDirection
private Optional<NetworkDirection>
SimpleChannel.MessageBuilder.networkDirection
Modifier and TypeMethodDescriptionprivate static <MSG> SimpleChannel.MessageBuilder<MSG>
SimpleChannel.MessageBuilder.forType
(SimpleChannel channel, Class<MSG> type, int id, NetworkDirection networkDirection) <M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder
(Class<M> type, int id, NetworkDirection direction) Build a new MessageBuilder.<MSG> void
SimpleChannel.sendTo
(MSG message, NetworkManager manager, NetworkDirection direction) <MSG> IPacket<?>
SimpleChannel.toVanillaPacket
(MSG message, NetworkDirection direction) Modifier and TypeMethodDescription(package private) <MSG> IndexedMessageCodec.MessageHandler<MSG>
IndexedMessageCodec.addCodecIndex
(int index, Class<MSG> messageType, BiConsumer<MSG, PacketBuffer> encoder, Function<PacketBuffer, MSG> decoder, BiConsumer<MSG, Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection) <MSG> IndexedMessageCodec.MessageHandler<MSG>
SimpleChannel.registerMessage
(int index, Class<MSG> messageType, BiConsumer<MSG, PacketBuffer> encoder, Function<PacketBuffer, MSG> decoder, BiConsumer<MSG, Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection) ModifierConstructorDescriptionMessageHandler
(int index, Class<MSG> messageType, BiConsumer<MSG, PacketBuffer> encoder, Function<PacketBuffer, MSG> decoder, BiConsumer<MSG, Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection)