Class NettyEncryptionTranslator

java.lang.Object
net.minecraft.network.NettyEncryptionTranslator

public class NettyEncryptionTranslator extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Cipher
     
    private byte[]
     
    private byte[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private 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_)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cipher

      private final Cipher cipher
    • heapIn

      private byte[] heapIn
    • heapOut

      private byte[] heapOut
  • Constructor Details

    • NettyEncryptionTranslator

      protected NettyEncryptionTranslator(Cipher p_i45140_1_)
  • 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