2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1015 B
Java

package net.minecraft.network;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import java.util.List;
import javax.crypto.Cipher;
import javax.crypto.ShortBufferException;
public class NettyEncryptingDecoder extends MessageToMessageDecoder
{
private final NettyEncryptionTranslator field_150509_a;
private static final String __OBFID = "CL_00001238";
public NettyEncryptingDecoder(Cipher cipher)
{
this.field_150509_a = new NettyEncryptionTranslator(cipher);
}
protected void decode(ChannelHandlerContext p_decode_1_, ByteBuf p_decode_2_, List p_decode_3_) throws ShortBufferException
{
p_decode_3_.add(this.field_150509_a.func_150503_a(p_decode_1_, p_decode_2_));
}
protected void decode(ChannelHandlerContext p_decode_1_, Object p_decode_2_, List p_decode_3_) throws ShortBufferException
{
this.decode(p_decode_1_, (ByteBuf)p_decode_2_, p_decode_3_);
}
}