mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-26 17:46:25 -05:00
networking: Clarify packet type callback JD (#829)
This commit is contained in:
parent
5ce5339883
commit
3234627dd4
2 changed files with 10 additions and 6 deletions
|
@ -25,9 +25,11 @@ import net.fabricmc.fabric.api.event.Event;
|
|||
import net.fabricmc.fabric.api.event.EventFactory;
|
||||
|
||||
/**
|
||||
* Event for listening to packet type registrations and unregistrations
|
||||
* (also known as "minecraft:register" and "minecraft:unregister")
|
||||
* in the client -> server direction.
|
||||
* Event for listening to packet type registration and unregistration notifications
|
||||
* (also known as "minecraft:register" and "minecraft:unregister") sent by a client.
|
||||
*
|
||||
* <p>Registrations received will be for <em>server -> client</em> packets
|
||||
* that the sending client can understand.
|
||||
*/
|
||||
public interface C2SPacketTypeCallback {
|
||||
Event<C2SPacketTypeCallback> REGISTERED = EventFactory.createArrayBacked(
|
||||
|
|
|
@ -24,9 +24,11 @@ import net.fabricmc.fabric.api.event.Event;
|
|||
import net.fabricmc.fabric.api.event.EventFactory;
|
||||
|
||||
/**
|
||||
* Event for listening to packet type registrations and unregistrations
|
||||
* (also known as "minecraft:register" and "minecraft:unregister")
|
||||
* in the server -> client direction.
|
||||
* Event for listening to packet type registration and unregistration notifications
|
||||
* (also known as "minecraft:register" and "minecraft:unregister") sent by a server.
|
||||
*
|
||||
* <p>Registrations received will be for <em>client -> server</em> packets
|
||||
* that the sending server can understand.
|
||||
*/
|
||||
public interface S2CPacketTypeCallback {
|
||||
Event<S2CPacketTypeCallback> REGISTERED = EventFactory.createArrayBacked(
|
||||
|
|
Loading…
Reference in a new issue