Package net.citizensnpcs.npc.skin
Interface SkinnableEntity
- All Superinterfaces:
NPCHolder
- All Known Subinterfaces:
SkinnableEntity.ForwardingSkinnableEntity
Interface for player entities that are skinnable.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTexture(SkinProperty property) com.mojang.authlib.GameProfileGet entity game profile.default LivingEntityGet the bukkit entity.default StringGet 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.default voidsetSkinFlags(Set<SkinLayers.Layer> flags) default voidsetSkinPatch(SkinnableEntity.PlayerSkinModelType type, NamespacedKey body, NamespacedKey cape, NamespacedKey elytra)
-
Method Details
-
applyTexture
-
gameProfile
com.mojang.authlib.GameProfile gameProfile()Get entity game profile. -
getBukkitEntity
Get the bukkit entity. -
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
-
setSkinPatch
default void setSkinPatch(SkinnableEntity.PlayerSkinModelType type, NamespacedKey body, NamespacedKey cape, NamespacedKey elytra)
-