public interface C2SPacketTypeCallback
Registrations received will be for server -> client packets that the sending client can understand.
Modifier and Type | Field and Description |
---|---|
static Event<C2SPacketTypeCallback> |
REGISTERED |
static Event<C2SPacketTypeCallback> |
UNREGISTERED |
Modifier and Type | Method and Description |
---|---|
void |
accept(net.minecraft.entity.player.PlayerEntity client,
Collection<net.minecraft.util.Identifier> types)
Accept a collection of types.
|
static final Event<C2SPacketTypeCallback> REGISTERED
static final Event<C2SPacketTypeCallback> UNREGISTERED
void accept(net.minecraft.entity.player.PlayerEntity client, Collection<net.minecraft.util.Identifier> types)
client
- The player who is the source of the packet.types
- The provided collection of types.