Package net.minecraft.network
Class NettyEncryptionTranslator
java.lang.Object
net.minecraft.network.NettyEncryptionTranslator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
bufToByte
(io.netty.buffer.ByteBuf p_150502_1_) protected io.netty.buffer.ByteBuf
decipher
(io.netty.channel.ChannelHandlerContext p_150503_1_, io.netty.buffer.ByteBuf p_150503_2_) protected void
encipher
(io.netty.buffer.ByteBuf p_150504_1_, io.netty.buffer.ByteBuf p_150504_2_)
-
Field Details
-
cipher
-
heapIn
private byte[] heapIn -
heapOut
private byte[] heapOut
-
-
Constructor Details
-
NettyEncryptionTranslator
-
-
Method Details
-
bufToByte
private byte[] bufToByte(io.netty.buffer.ByteBuf p_150502_1_) -
decipher
protected io.netty.buffer.ByteBuf decipher(io.netty.channel.ChannelHandlerContext p_150503_1_, io.netty.buffer.ByteBuf p_150503_2_) throws ShortBufferException - Throws:
ShortBufferException
-
encipher
protected void encipher(io.netty.buffer.ByteBuf p_150504_1_, io.netty.buffer.ByteBuf p_150504_2_) throws ShortBufferException - Throws:
ShortBufferException
-