Interface S2CPacketTypeCallback
Deprecated.
Event for listening to packet type registration and unregistration notifications
(also known as "minecraft:register" and "minecraft:unregister") sent by a server.
Registrations received will be for client -> server packets that the sending server can understand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Event<S2CPacketTypeCallback>Deprecated.Please migrate toS2CPlayChannelEvents.REGISTER.static Event<S2CPacketTypeCallback>Deprecated.Please migrate toS2CPlayChannelEvents.UNREGISTER. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Collection<net.minecraft.util.Identifier> types)Deprecated.Accept a collection of types.
-
Field Details
-
REGISTERED
Deprecated.Please migrate toS2CPlayChannelEvents.REGISTER. -
UNREGISTERED
Deprecated.Please migrate toS2CPlayChannelEvents.UNREGISTER.
-
-
Method Details
-
accept
Deprecated.Accept a collection of types.- Parameters:
types- The provided collection of types.
-
C2SPlayChannelEventssince this was incorrectly named.