接口 ServerEvents.Connection.Receive.Modify

封闭类:
ServerEvents.Connection.Receive
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public static interface ServerEvents.Connection.Receive.Modify
  • 方法概要

    修饰符和类型
    方法
    说明
    @NotNull net.minecraft.network.protocol.Packet<?>
    modifyReceive(@NotNull net.minecraft.network.PacketListener packetListener, @NotNull net.minecraft.network.protocol.Packet<?> packet)
    Modifies or provides a packet for receiving.
  • 方法详细资料

    • modifyReceive

      @NotNull @NotNull net.minecraft.network.protocol.Packet<?> modifyReceive(@NotNull @NotNull net.minecraft.network.PacketListener packetListener, @NotNull @NotNull net.minecraft.network.protocol.Packet<?> packet)
      Modifies or provides a packet for receiving.
      参数:
      packetListener - the packet listener
      packet - the packet being received
      返回:
      the modified packet