Interface C2SPacketTypeCallback
Deprecated.
Event for listening to packet type registration and unregistration notifications
(also known as "minecraft:register" and "minecraft:unregister") sent by a client.
Registrations received will be for server -> client packets that the sending client can understand.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event<C2SPacketTypeCallback>
Deprecated.Please migrate toC2SPlayChannelEvents.REGISTER
.static final Event<C2SPacketTypeCallback>
Deprecated.Please migrate toC2SPlayChannelEvents.UNREGISTER
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PlayerEntity client, Collection<Identifier> types) Deprecated.Accept a collection of types.
-
Field Details
-
REGISTERED
Deprecated.Please migrate toC2SPlayChannelEvents.REGISTER
. -
UNREGISTERED
Deprecated.Please migrate toC2SPlayChannelEvents.UNREGISTER
.
-
-
Method Details
-
accept
Deprecated.Accept a collection of types.- Parameters:
client
- The player who is the source of the packet.types
- The provided collection of types.
-
S2CPlayChannelEvents
since this was incorrectly named.