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.GameProfile
Get entity game profile.Get the name of the player whose skin the NPC uses.Get the entities skin packet tracker.void
setSkinFlags
(byte flags) Set the bit flags that represent the skin layer parts visibility.default void
setSkinFlags
(Set<SkinLayers.Layer> flags) void
setSkinName
(String name) Deprecated.void
setSkinName
(String skinName, boolean forceUpdate) Deprecated.void
setSkinPersistent
(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.
-
setSkinFlags
-
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.- See Also:
-