Interface ServerEvents.Connection.Send.Modify

Enclosing class:
ServerEvents.Connection.Send
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerEvents.Connection.Send.Modify
  • Method Summary

    Modifier and Type
    Method
    Description
    @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.
  • Method Details

    • 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.
      Parameters:
      packetListener - the packet listener may be null
      packet - the packet being sent
      Returns:
      the modified packet