use of org.spongepowered.common.interfaces.network.play.server.IMixinSPacketPlayerListItem in project SpongeCommon by SpongePowered.
the class SpongeTabList method sendUpdate.
/**
* Send an entry update.
*
* @param entry The entry to update
* @param action The update action to perform
*/
protected void sendUpdate(TabListEntry entry, SPacketPlayerListItem.Action action) {
SPacketPlayerListItem packet = new SPacketPlayerListItem();
packet.action = action;
((IMixinSPacketPlayerListItem) packet).addEntry(entry);
this.player.connection.sendPacket(packet);
}
Aggregations