Package icu.suc.serverevents
Interface ServerEvents.Connection.Receive.Allow
- Enclosing class:
ServerEvents.Connection.Receive
- 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
allowReceive
(@NotNull net.minecraft.network.PacketListener packetListener, @NotNull net.minecraft.network.protocol.Packet<?> packet) Called when the server receives a packet.
-
Method Details
-
allowReceive
boolean allowReceive(@NotNull @NotNull net.minecraft.network.PacketListener packetListener, @NotNull @NotNull net.minecraft.network.protocol.Packet<?> packet) Called when the server receives a packet.- Parameters:
packetListener
- the packet listenerpacket
- the packet being received- Returns:
true
if the packet should be received, otherwisefalse
-