Class CustomPacketManager
java.lang.Object
com.elikill58.negativity.api.packets.PacketManager
com.elikill58.negativity.fabric.impl.packet.FabricPacketManager
com.elikill58.negativity.fabric.packets.CustomPacketManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
onLeave
(net.minecraft.server.network.ServerPlayNetworkHandler e, net.minecraft.server.MinecraftServer srv) onPacketReceive
(NPacket packet, Player sender, Object nmsPacket) onPacketSent
(NPacket packet, Player sender, Object nmsPacket) void
onPlayerJoin
(net.minecraft.server.network.ServerPlayNetworkHandler e, net.fabricmc.fabric.api.networking.v1.PacketSender sender, net.minecraft.server.MinecraftServer srv) void
Methods inherited from class com.elikill58.negativity.fabric.impl.packet.FabricPacketManager
notifyHandlersReceive, notifyHandlersSent
Methods inherited from class com.elikill58.negativity.api.packets.PacketManager
clear, load
-
Constructor Details
-
CustomPacketManager
public CustomPacketManager()
-
-
Method Details
-
onPlayerJoin
public void onPlayerJoin(net.minecraft.server.network.ServerPlayNetworkHandler e, net.fabricmc.fabric.api.networking.v1.PacketSender sender, net.minecraft.server.MinecraftServer srv) -
onLeave
public void onLeave(net.minecraft.server.network.ServerPlayNetworkHandler e, net.minecraft.server.MinecraftServer srv) -
addPlayer
- Overrides:
addPlayer
in classPacketManager
-
removePlayer
- Overrides:
removePlayer
in classPacketManager
-
onPacketSent
-
onPacketReceive
-