Package icu.suc.serverevents
Interface ServerEvents.Connection.Send.Allow
- 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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowSend
(@Nullable net.minecraft.network.PacketListener packetListener, @NotNull net.minecraft.network.protocol.Packet<?> packet) Called when a packet is sent by the server.
-
Method Details
-
allowSend
boolean allowSend(@Nullable @Nullable net.minecraft.network.PacketListener packetListener, @NotNull @NotNull net.minecraft.network.protocol.Packet<?> packet) Called when a packet is sent by the server.- Parameters:
packetListener
- the packet listener may benull
packet
- the packet being sent- Returns:
true
if the packet should be sent, otherwisefalse
-