Uses of Class
net.minecraftforge.fml.network.simple.IndexedMessageCodec.MessageHandler
-
Uses of IndexedMessageCodec.MessageHandler in net.minecraftforge.fml.network.simple
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.shorts.Short2ObjectArrayMap<IndexedMessageCodec.MessageHandler<?>>
IndexedMessageCodec.indicies
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<Class<?>,
IndexedMessageCodec.MessageHandler<?>> IndexedMessageCodec.types
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) (package private) <MSG> IndexedMessageCodec.MessageHandler<MSG>
IndexedMessageCodec.findIndex
(short i) <MSG> IndexedMessageCodec.MessageHandler<MSG>
IndexedMessageCodec.findMessageType
(MSG msgToReply) <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) <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) Modifier and TypeMethodDescriptionprivate static <M> void
IndexedMessageCodec.tryDecode
(PacketBuffer payload, Supplier<NetworkEvent.Context> context, int payloadIndex, IndexedMessageCodec.MessageHandler<M> codec) private static <M> int
IndexedMessageCodec.tryEncode
(PacketBuffer target, M message, IndexedMessageCodec.MessageHandler<M> codec)