Uses of Enum Class
net.minecraftforge.fmllegacy.network.NetworkDirection
Packages that use NetworkDirection
Package
Description
-
Uses of NetworkDirection in net.minecraftforge.fmllegacy.network
Fields in net.minecraftforge.fmllegacy.network declared as NetworkDirectionModifier and TypeFieldDescriptionprivate NetworkDirectionFMLHandshakeHandler.directionprivate NetworkDirectionPacketDistributor.directionprivate NetworkDirectionNetworkEvent.Context.networkDirectionTheNetworkDirectionthis message has been received on.Fields in net.minecraftforge.fmllegacy.network with type parameters of type NetworkDirectionModifier and TypeFieldDescriptionprivate static it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet>,NetworkDirection>NetworkDirection.packetLookupMethods in net.minecraftforge.fmllegacy.network that return NetworkDirectionModifier and TypeMethodDescriptionstatic <T extends ICustomPacket<?>>
NetworkDirectionNetworkDirection.directionFor(Class<T> customPacket)default NetworkDirectionICustomPacket.getDirection()NetworkEvent.Context.getDirection()PacketDistributor.PacketTarget.getDirection()NetworkDirection.reply()static NetworkDirectionReturns 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.Methods in net.minecraftforge.fmllegacy.network with parameters of type NetworkDirectionModifier and TypeMethodDescription(package private) booleanNetworkInstance.dispatch(NetworkDirection side, ICustomPacket<?> packet, Connection manager)(package private) static List<NetworkRegistry.LoginPayload>NetworkRegistry.gatherLoginPayloads(NetworkDirection direction, boolean isLocal)Retrieve theNetworkRegistry.LoginPayloadlist for dispatch duringFMLHandshakeHandler.tickLogin(Connection)handling.(package private) static voidFMLHandshakeHandler.registerHandshake(Connection manager, NetworkDirection direction)Create a new handshake instance.voidFMLMCRegisterPacketHandler.sendRegistry(Connection manager, NetworkDirection dir)static voidNetworkHooks.validatePacketDirection(NetworkDirection packetDirection, Optional<NetworkDirection> expectedDirection, Connection connection)Method parameters in net.minecraftforge.fmllegacy.network with type arguments of type NetworkDirectionModifier and TypeMethodDescriptionstatic voidNetworkHooks.validatePacketDirection(NetworkDirection packetDirection, Optional<NetworkDirection> expectedDirection, Connection connection)Constructors in net.minecraftforge.fmllegacy.network with parameters of type NetworkDirectionModifierConstructorDescription(package private)Context(Connection netHandler, NetworkDirection networkDirection, int index)(package private)Context(Connection networkManager, NetworkDirection networkDirection, PacketDispatcher dispatcher)privateFMLHandshakeHandler(Connection networkManager, NetworkDirection side)PacketDistributor(BiFunction<PacketDistributor<T>,Supplier<T>,Consumer<Packet<?>>> functor, NetworkDirection direction) -
Uses of NetworkDirection in net.minecraftforge.fmllegacy.network.simple
Fields in net.minecraftforge.fmllegacy.network.simple with type parameters of type NetworkDirectionModifier and TypeFieldDescriptionprivate Optional<NetworkDirection>IndexedMessageCodec.MessageHandler.networkDirectionprivate Optional<NetworkDirection>SimpleChannel.MessageBuilder.networkDirectionMethods in net.minecraftforge.fmllegacy.network.simple with parameters of type NetworkDirectionModifier 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> voidSimpleChannel.sendTo(MSG message, Connection manager, NetworkDirection direction)<MSG> Packet<?>SimpleChannel.toVanillaPacket(MSG message, NetworkDirection direction)Method parameters in net.minecraftforge.fmllegacy.network.simple with type arguments of type NetworkDirectionModifier and TypeMethodDescription(package private) <MSG> IndexedMessageCodec.MessageHandler<MSG>IndexedMessageCodec.addCodecIndex(int index, Class<MSG> messageType, BiConsumer<MSG,FriendlyByteBuf> encoder, Function<FriendlyByteBuf,MSG> decoder, BiConsumer<MSG,Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection)<MSG> IndexedMessageCodec.MessageHandler<MSG>SimpleChannel.registerMessage(int index, Class<MSG> messageType, BiConsumer<MSG,FriendlyByteBuf> encoder, Function<FriendlyByteBuf,MSG> decoder, BiConsumer<MSG,Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection)Constructor parameters in net.minecraftforge.fmllegacy.network.simple with type arguments of type NetworkDirectionModifierConstructorDescriptionMessageHandler(int index, Class<MSG> messageType, BiConsumer<MSG,FriendlyByteBuf> encoder, Function<FriendlyByteBuf,MSG> decoder, BiConsumer<MSG,Supplier<NetworkEvent.Context>> messageConsumer, Optional<NetworkDirection> networkDirection)