Uses of Class
net.minecraftforge.network.simple.IndexedMessageCodec.MessageHandler
-
Uses of IndexedMessageCodec.MessageHandler in net.minecraftforge.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, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, 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, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, MSG> decoder, BiConsumer<MSG, Supplier<NetworkEvent.Context>> messageConsumer) <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) Modifier and TypeMethodDescriptionprivate static <M> void
IndexedMessageCodec.tryDecode
(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> context, int payloadIndex, IndexedMessageCodec.MessageHandler<M> codec) private static <M> int
IndexedMessageCodec.tryEncode
(FriendlyByteBuf target, M message, IndexedMessageCodec.MessageHandler<M> codec)