类 DecoderHandlerMixin
java.lang.Object
cn.korostudio.c3h6n6o6.mixin.DecoderHandlerMixin
对DecoderHandler的Mixin
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private @Nullable net.minecraft.network.Packet<?>
fixError
(net.minecraft.network.NetworkState instance, net.minecraft.network.NetworkSide side, int packetId, net.minecraft.network.PacketByteBuf buf) 套try后可以妥善处理部分正常的异常(private void
protectPacket
(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> objects, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 异常拦截
-
字段详细资料
-
LOGGER
private static org.slf4j.Logger LOGGERLOGGER镜像
-
-
构造器详细资料
-
DecoderHandlerMixin
public DecoderHandlerMixin()
-
-
方法详细资料
-
fixError
@Nullable private @Nullable net.minecraft.network.Packet<?> fixError(net.minecraft.network.NetworkState instance, net.minecraft.network.NetworkSide side, int packetId, net.minecraft.network.PacketByteBuf buf) 套try后可以妥善处理部分正常的异常(- 参数:
instance
- 问MJ去side
- 问MJ去packetId
- 问MJ去buf
- 问MJ去- 返回:
- 问MJ去
-
protectPacket
private void protectPacket(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> objects, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 异常拦截- 参数:
ctx
- 问MJ去buf
- 问MJ去objects
- 问MJ去ci
- 问MJ去
-