Class CustomPacketManager


public class CustomPacketManager extends FabricPacketManager
  • 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

      public void addPlayer(Player p)
      Overrides:
      addPlayer in class PacketManager
    • removePlayer

      public void removePlayer(Player p)
      Overrides:
      removePlayer in class PacketManager
    • onPacketSent

      public AbstractPacket onPacketSent(NPacket packet, Player sender, Object nmsPacket)
    • onPacketReceive

      public AbstractPacket onPacketReceive(NPacket packet, Player sender, Object nmsPacket)