Package net.citizensnpcs.npc.skin
Interface SkinnableEntity
- All Superinterfaces:
NPCHolder
Interface for player entities that are skinnable.
-
Method Summary
Modifier and TypeMethodDescriptionGet the bukkit entity.com.mojang.authlib.GameProfileGet entity game profile.Get the name of the player whose skin the NPC uses.Get the entities skin packet tracker.voidsetSkinFlags(byte flags) Set the bit flags that represent the skin layer parts visibility.voidsetSkinName(String name) Deprecated.voidsetSkinName(String skinName, boolean forceUpdate) Deprecated.voidsetSkinPersistent(String skinName, String signature, String data) Deprecated.
-
Method Details
-
getBukkitEntity
Player getBukkitEntity()Get the bukkit entity. -
getProfile
com.mojang.authlib.GameProfile getProfile()Get entity game profile. -
getSkinName
String getSkinName()Get the name of the player whose skin the NPC uses. -
getSkinTracker
SkinPacketTracker getSkinTracker()Get the entities skin packet tracker. -
setSkinFlags
void setSkinFlags(byte flags) Set the bit flags that represent the skin layer parts visibility.Setting the skin flags automatically updates the NPC skin.
- Parameters:
flags- The bit flags.
-
setSkinName
Deprecated.Set the name of the player whose skin the NPC uses.Setting the skin name automatically updates and respawn the NPC.
- Parameters:
name- The skin name.- See Also:
-
setSkinName
Deprecated.- See Also:
-
setSkinPersistent
Deprecated.
-