Fix v0 deprecation javadoc error ()

This commit is contained in:
i509VCB 2020-12-17 02:45:07 -06:00 committed by GitHub
parent 64c503a93e
commit d3799feeea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
fabric-networking-v0/src/main/java/net/fabricmc/fabric/api/event/network

View file

@ -24,6 +24,7 @@ import net.minecraft.util.Identifier;
import net.fabricmc.fabric.api.client.networking.v1.C2SPlayChannelEvents;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.fabricmc.fabric.api.networking.v1.S2CPlayChannelEvents;
/**
* Event for listening to packet type registration and unregistration notifications
@ -32,7 +33,7 @@ import net.fabricmc.fabric.api.event.EventFactory;
* <p>Registrations received will be for <em>server -&gt; client</em> packets
* that the sending client can understand.
*
* @deprecated Please migrate to {@link C2SPlayChannelEvents}.
* @deprecated Please migrate to {@link S2CPlayChannelEvents} since this was incorrectly named.
*/
@Deprecated
public interface C2SPacketTypeCallback {

View file

@ -20,6 +20,7 @@ import java.util.Collection;
import net.minecraft.util.Identifier;
import net.fabricmc.fabric.api.client.networking.v1.C2SPlayChannelEvents;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.fabricmc.fabric.api.networking.v1.S2CPlayChannelEvents;
@ -31,7 +32,7 @@ import net.fabricmc.fabric.api.networking.v1.S2CPlayChannelEvents;
* <p>Registrations received will be for <em>client -&gt; server</em> packets
* that the sending server can understand.
*
* @deprecated Please migrate to {@link S2CPlayChannelEvents}.
* @deprecated Please migrate to {@link C2SPlayChannelEvents} since this was incorrectly named.
*/
@Deprecated
public interface S2CPacketTypeCallback {