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
FieldsModifier and TypeFieldDescriptionstatic Event<C2SPacketTypeCallback>Deprecated.Please migrate toC2SPlayChannelEvents.REGISTER.static Event<C2SPacketTypeCallback>Deprecated.Please migrate toC2SPlayChannelEvents.UNREGISTER. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(net.minecraft.entity.player.PlayerEntity client, Collection<net.minecraft.util.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
void accept(net.minecraft.entity.player.PlayerEntity client, Collection<net.minecraft.util.Identifier> types)Deprecated.Accept a collection of types.- Parameters:
client- The player who is the source of the packet.types- The provided collection of types.
-
S2CPlayChannelEventssince this was incorrectly named.