Package net.citizensnpcs.npc.skin
Class TabListRemover
java.lang.Object
net.citizensnpcs.npc.skin.TabListRemover
Sends remove packets in batch per player.
Collects entities to remove and sends them all to the player in a single packet.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelPackets
(Player player) Cancel packets pending to be sent to the specified player.void
cancelPackets
(Player player, SkinnableEntity skinnable) Cancel packets pending to be sent to the specified player for the specified skinnable entity.void
sendPacket
(Player player, SkinnableEntity entity) Send a remove packet to the specified player for the specified skinnable entity.
-
Method Details
-
cancelPackets
Cancel packets pending to be sent to the specified player.- Parameters:
player
- The player.
-
cancelPackets
Cancel packets pending to be sent to the specified player for the specified skinnable entity.- Parameters:
player
- The player.skinnable
- The skinnable entity.
-
sendPacket
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.
-