networking: Clarify packet type callback JD (#829)

This commit is contained in:
zml 2020-06-21 05:31:30 -07:00 committed by GitHub
parent 5ce5339883
commit 3234627dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -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 -&gt; client</em> packets
* that the sending client can understand.
*/
public interface C2SPacketTypeCallback {
Event<C2SPacketTypeCallback> REGISTERED = EventFactory.createArrayBacked(

View file

@ -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 -&gt; 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 -&gt; server</em> packets
* that the sending server can understand.
*/
public interface S2CPacketTypeCallback {
Event<S2CPacketTypeCallback> REGISTERED = EventFactory.createArrayBacked(