/* * Decompiled with CFR 0.152. * * Could not load the following classes: * io.netty.buffer.ByteBuf * io.netty.channel.ChannelHandlerContext * io.netty.handler.codec.MessageToMessageDecoder */ 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 net.minecraft.network.CipherBase; public class CipherDecoder extends MessageToMessageDecoder { private final CipherBase cipher; public CipherDecoder(Cipher cipher) { this.cipher = new CipherBase(cipher); } protected void decode(ChannelHandlerContext ctx, ByteBuf msg, List out) throws Exception { out.add(this.cipher.decipher(ctx, msg)); } }