Class SkinPacketTracker
java.lang.Object
net.citizensnpcs.npc.skin.SkinPacketTracker
Handles and synchronizes add and remove packets for Player type NPC's in order to properly apply the NPC skin.
Used as one instance per NPC entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSkin()Get the NPC skin.voidnotifySkinChange(boolean forceUpdate) Notify that the NPC skin has been changed.voidupdateViewer(Player player) Send skin related packets to a player.
-
Constructor Details
-
SkinPacketTracker
Constructor.- Parameters:
entity- The skinnable entity the instance belongs to.
-
-
Method Details
-
getSkin
Get the NPC skin. -
notifySkinChange
public void notifySkinChange(boolean forceUpdate) Notify that the NPC skin has been changed. -
updateViewer
Send skin related packets to a player.- Parameters:
player- The player.
-