mirror of
https://github.com/ViaVersion/ViaLoader.git
synced 2024-09-30 04:37:54 +02:00
Updated README
This commit is contained in:
parent
1b40e4ef6f
commit
92355734b0
@ -78,8 +78,7 @@ Here is an example implementation:
|
||||
final UserConnection user = new UserConnectionImpl(channel, true);
|
||||
new ProtocolPipelineImpl(user);
|
||||
|
||||
channel.pipeline().addBefore("encoder", VPHPipeline.ENCODER_HANDLER_NAME, new VPHEncodeHandler(user));
|
||||
channel.pipeline().addBefore("decoder", VPHPipeline.DECODER_HANDLER_NAME, new VPHDecodeHandler(user));
|
||||
channel.pipeline().addBefore("packet_codec", VPHPipeline.VIA_CODEC_NAME, new ViaCodec(user));
|
||||
```
|
||||
If you are using ViaLegacy, you should read its README to see what changes you need to make to the netty pipeline for it to work.
|
||||
Depending on where you are implementing ViaProtocolHack you might need to ensure that the pipeline is held in the correct order.
|
||||
|
Loading…
Reference in New Issue
Block a user