Uses of Class
net.minecraftforge.fmllegacy.network.simple.IndexedMessageCodec.MessageHandler
-
Uses of IndexedMessageCodec.MessageHandler in net.minecraftforge.fmllegacy.network.simple
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.shorts.Short2ObjectArrayMap<IndexedMessageCodec.MessageHandler<?>>
IndexedMessageCodec.indicies
private 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)