Class PacketEncryptionManager

java.lang.Object
net.minecraft.network.encryption.PacketEncryptionManager

public class PacketEncryptionManager extends Object
Mappings:
Namespace Name
official pg
intermediary net/minecraft/class_2524
named net/minecraft/network/encryption/PacketEncryptionManager
  • Field Details

    • cipher

      private final Cipher cipher
      Mappings:
      Namespace Name Mixin selector
      official a Lpg;a:Ljavax/crypto/Cipher;
      intermediary field_11612 Lnet/minecraft/class_2524;field_11612:Ljavax/crypto/Cipher;
      named cipher Lnet/minecraft/network/encryption/PacketEncryptionManager;cipher:Ljavax/crypto/Cipher;
    • conversionBuffer

      private byte[] conversionBuffer
      Mappings:
      Namespace Name Mixin selector
      official b Lpg;b:[B
      intermediary field_11613 Lnet/minecraft/class_2524;field_11613:[B
      named conversionBuffer Lnet/minecraft/network/encryption/PacketEncryptionManager;conversionBuffer:[B
    • encryptionBuffer

      private byte[] encryptionBuffer
      Mappings:
      Namespace Name Mixin selector
      official c Lpg;c:[B
      intermediary field_11614 Lnet/minecraft/class_2524;field_11614:[B
      named encryptionBuffer Lnet/minecraft/network/encryption/PacketEncryptionManager;encryptionBuffer:[B
  • Constructor Details

    • PacketEncryptionManager

      protected PacketEncryptionManager(Cipher cipher)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpg;<init>(Ljavax/crypto/Cipher;)V
      intermediary <init> Lnet/minecraft/class_2524;<init>(Ljavax/crypto/Cipher;)V
      named <init> Lnet/minecraft/network/encryption/PacketEncryptionManager;<init>(Ljavax/crypto/Cipher;)V
  • Method Details

    • toByteArray

      private byte[] toByteArray(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lpg;a(Lio/netty/buffer/ByteBuf;)[B
      intermediary method_10733 Lnet/minecraft/class_2524;method_10733(Lio/netty/buffer/ByteBuf;)[B
      named toByteArray Lnet/minecraft/network/encryption/PacketEncryptionManager;toByteArray(Lio/netty/buffer/ByteBuf;)[B
    • decrypt

      protected ByteBuf decrypt(ChannelHandlerContext context, ByteBuf buf) throws ShortBufferException
      Throws:
      ShortBufferException
      Mappings:
      Namespace Name Mixin selector
      official a Lpg;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      intermediary method_10734 Lnet/minecraft/class_2524;method_10734(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      named decrypt Lnet/minecraft/network/encryption/PacketEncryptionManager;decrypt(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
    • encrypt

      protected void encrypt(ByteBuf buf, ByteBuf result) throws ShortBufferException
      Throws:
      ShortBufferException
      Mappings:
      Namespace Name Mixin selector
      official a Lpg;a(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
      intermediary method_10732 Lnet/minecraft/class_2524;method_10732(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
      named encrypt Lnet/minecraft/network/encryption/PacketEncryptionManager;encrypt(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V