类 DecoderHandlerMixin

java.lang.Object
cn.korostudio.c3h6n6o6.mixin.DecoderHandlerMixin

public class DecoderHandlerMixin extends Object
对DecoderHandler的Mixin
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private static org.slf4j.Logger
    LOGGER镜像
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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)
    异常拦截

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • LOGGER

      private static org.slf4j.Logger LOGGER
      LOGGER镜像
  • 构造器详细资料

    • 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去