Interface SkinnableEntity

All Superinterfaces:
NPCHolder
All Known Subinterfaces:
SkinnableEntity.ForwardingSkinnableEntity

public interface SkinnableEntity extends NPCHolder
Interface for player entities that are skinnable.
  • Method Details

    • applyTexture

      void applyTexture(SkinProperty property)
    • gameProfile

      com.mojang.authlib.GameProfile gameProfile()
      Get entity game profile.
    • getBukkitEntity

      default LivingEntity getBukkitEntity()
      Get the bukkit entity.
    • getSkinName

      default 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

      default void setSkinFlags(Set<SkinLayers.Layer> flags)
    • setSkinPatch

      default void setSkinPatch(SkinnableEntity.PlayerSkinModelType type, NamespacedKey body, NamespacedKey cape, NamespacedKey elytra)