Package foundry.veil.api.network
Interface VeilPacketManager.PacketHandler<T extends PacketContext,P extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
- Type Parameters:
T
- The context to useP
- The packet to handle
- Enclosing interface:
VeilPacketManager
- 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 VeilPacketManager.PacketHandler<T extends PacketContext,P extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
Handles packets from the client/server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePacket
(P payload, T ctx) Handles the specified packet.
-
Method Details
-
handlePacket
Handles the specified packet.- Parameters:
payload
- The packet payloadctx
- The sided context
-