public class TabListRemover extends Object
Collects entities to remove and sends them all to the player in a single packet.
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public void cancelPackets(Player player)
player
- The player.public void cancelPackets(Player player, SkinnableEntity skinnable)
player
- The player.skinnable
- The skinnable entity.public void sendPacket(Player player, SkinnableEntity entity)
player
- The player to send the packet to.entity
- The entity to remove.Copyright © 2019. All rights reserved.