Class CustomPipelineUtil
java.lang.Object
io.github.retrooper.packetevents.injector.CustomPipelineUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncallDecode
(Object decoder, Object ctx, Object input) Call the decode method on a netty ByteToMessageDecoderstatic void
callEncode
(Object encoder, Object ctx, Object msg, Object output) Call the encode method on a netty MessageToByteEncodercallMTMDecode
(Object decoder, Object ctx, Object msg) callMTMEncode
(Object encoder, Object ctx, Object msg) callPacketDecodeByteBuf
(Object decoder, Object ctx, Object msg) static void
static void
init()
-
Constructor Details
-
CustomPipelineUtil
public CustomPipelineUtil()
-
-
Method Details
-
init
public static void init() -
callDecode
public static List<Object> callDecode(Object decoder, Object ctx, Object input) throws InvocationTargetException Call the decode method on a netty ByteToMessageDecoder- Parameters:
decoder
- The decoderctx
- The current contextinput
- The packet to decode- Returns:
- A list of the decoders output
- Throws:
InvocationTargetException
- If an exception happens while executing
-
callEncode
public static void callEncode(Object encoder, Object ctx, Object msg, Object output) throws InvocationTargetException Call the encode method on a netty MessageToByteEncoder- Parameters:
encoder
- The encoderctx
- The current contextmsg
- The packet to encodeoutput
- The bytebuf to write the output to- Throws:
InvocationTargetException
- If an exception happens while executing
-
callMTMEncode
-
callMTMDecode
public static List<Object> callMTMDecode(Object decoder, Object ctx, Object msg) throws InvocationTargetException - Throws:
InvocationTargetException
-
callPacketEncodeByteBuf
public static void callPacketEncodeByteBuf(Object encoder, Object ctx, Object msg, List<Object> output) throws InvocationTargetException - Throws:
InvocationTargetException
-
callPacketDecodeByteBuf
public static List<Object> callPacketDecodeByteBuf(Object decoder, Object ctx, Object msg) throws InvocationTargetException - Throws:
InvocationTargetException
-