接口 ServerEvents.Connection.Send.Modify
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明@NotNull net.minecraft.network.protocol.Packet<?> modifySend(@Nullable net.minecraft.network.PacketListener packetListener, @NotNull net.minecraft.network.protocol.Packet<?> packet) Modifies or provides a packet for sending.
-
方法详细资料
-
modifySend
@NotNull @NotNull net.minecraft.network.protocol.Packet<?> modifySend(@Nullable @Nullable net.minecraft.network.PacketListener packetListener, @NotNull @NotNull net.minecraft.network.protocol.Packet<?> packet) Modifies or provides a packet for sending.- 参数:
packetListener- the packet listener may benullpacket- the packet being sent- 返回:
- the modified packet
-