Interface NPCHologramSkin

All Superinterfaces:
BukkitEntitySkin, DamageableSkin, EquippableSkin, HologramSkin

public interface NPCHologramSkin extends HologramSkin, DamageableSkin, EquippableSkin, BukkitEntitySkin
Represents an "NPC"
  • Method Details

    • setSkin

      void setSkin(String texture, String signature)
      Applies a skin to the NPC
      Parameters:
      texture - The base64 texture data
      signature - The base64 signature data
    • resetSkin

      void resetSkin()
      Removes the current skin of the NPC and causes it by that to look like Alex/Steve
    • hasSkin

      boolean hasSkin()
      Returns whether the skin has a skin (whether he looks like Alex or Steve)
      Returns:
      true when a skin has been applied using setSkin(String, String)
    • getSkinTexture

      @Nullable @Nullable String getSkinTexture()
      Returns the skin texture that has been passed using setSkin(String, String).

      Might be null when no skin has been set.

      Returns:
      The skin texture in base64. Possibly null
    • getSkinSignature

      @Nullable @Nullable String getSkinSignature()
      Returns the skin signature that has been passed using setSkin(String, String).

      Might be null when no skin has been set.

      Returns:
      The skin signature in base64. Possibly null
    • setSneaking

      void setSneaking(boolean sneaking)
      Sets whether the NPC is sneaking or not.
      Parameters:
      sneaking - true when the NPC should be sneaking
    • isSneaking

      boolean isSneaking()
      Returns whether the NPC is sneaking or not.
      Returns:
      true when the NPC is sneaking