package net.minecraft.server; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToByteEncoder; import javax.crypto.Cipher; public class PacketEncrypter extends MessageToByteEncoder<ByteBuf> { private final PacketEncryptionHandler a; public PacketEncrypter(Cipher cipher) { this.a = new PacketEncryptionHandler(cipher); } protected void encode(ChannelHandlerContext channelhandlercontext, ByteBuf bytebuf, ByteBuf bytebuf1) throws Exception { this.a.a(bytebuf, bytebuf1); } }