Class TabListRemover

java.lang.Object
net.citizensnpcs.npc.skin.TabListRemover

public class TabListRemover extends Object
Sends remove packets in batch per player.

Collects entities to remove and sends them all to the player in a single packet.

  • Method Details

    • cancelPackets

      public void cancelPackets(Player player)
      Cancel packets pending to be sent to the specified player.
      Parameters:
      player - The player.
    • cancelPackets

      public void cancelPackets(Player player, SkinnableEntity skinnable)
      Cancel packets pending to be sent to the specified player for the specified skinnable entity.
      Parameters:
      player - The player.
      skinnable - The skinnable entity.
    • sendPacket

      public void sendPacket(Player player, SkinnableEntity entity)
      Send a remove packet to the specified player for the specified skinnable entity.
      Parameters:
      player - The player to send the packet to.
      entity - The entity to remove.