Class NPC.Attributes

java.lang.Object
dev.sergiferry.playernpc.api.NPC.Attributes
Enclosing class:
NPC

public static class NPC.Attributes extends Object
Since:
2022.1
  • Method Details

    • applyNPC

      public void applyNPC(@Nonnull NPC.Personal npc, boolean forceUpdate)
    • applyNPC

      public void applyNPC(@Nonnull NPC.Personal npc)
    • applyNPC

      public void applyNPC(@Nonnull Collection<NPC.Personal> npc)
    • applyNPC

      public void applyNPC(@Nonnull Collection<NPC.Personal> npc, boolean forceUpdate)
    • getDefault

      public static NPC.Attributes getDefault()
    • getNPCAttributes

      public static NPC.Attributes getNPCAttributes(@Nonnull NPC npc)
    • getSkin

      public NPC.Skin getSkin()
    • getSkinParts

      public NPC.Skin.Parts getSkinParts()
    • getDefaultSkin

      public static NPC.Skin getDefaultSkin()
    • setDefaultSkinParts

      public static void setDefaultSkinParts(@Nullable NPC.Skin.Parts skinParts)
    • setDefaultSkin

      public static void setDefaultSkin(@Nullable NPC.Skin npcSkin)
    • getText

      public List<String> getText()
    • getDefaultText

      public static List<String> getDefaultText()
    • setDefaultText

      public static void setDefaultText(@Nullable List<String> text)
    • getHelmet

      public org.bukkit.inventory.ItemStack getHelmet()
    • getDefaultHelmet

      public static org.bukkit.inventory.ItemStack getDefaultHelmet()
    • setDefaultHelmet

      public static void setDefaultHelmet(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • getChestPlate

      public org.bukkit.inventory.ItemStack getChestPlate()
    • getDefaultChestPlate

      public static org.bukkit.inventory.ItemStack getDefaultChestPlate()
    • setDefaultChestPlate

      public static void setDefaultChestPlate(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • getLeggings

      public org.bukkit.inventory.ItemStack getLeggings()
    • getDefaultLeggings

      public static org.bukkit.inventory.ItemStack getDefaultLeggings()
    • setDefaultLeggings

      public static void setDefaultLeggings(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • getBoots

      public org.bukkit.inventory.ItemStack getBoots()
    • getDefaultBoots

      public static org.bukkit.inventory.ItemStack getDefaultBoots()
    • setDefaultBoots

      public static void setDefaultBoots(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • setDefaultItem

      public static void setDefaultItem(@Nonnull NPC.Slot slot, @Nullable org.bukkit.inventory.ItemStack itemStack)
    • getItem

      public org.bukkit.inventory.ItemStack getItem(@Nonnull NPC.Slot slot)
    • getDefaultItem

      public static org.bukkit.inventory.ItemStack getDefaultItem(@Nonnull NPC.Slot slot)
    • isCollidable

      public boolean isCollidable()
    • isDefaultCollidable

      public static boolean isDefaultCollidable()
    • setDefaultCollidable

      public static void setDefaultCollidable(boolean collidable)
    • getHideDistance

      public Double getHideDistance()
    • getDefaultHideDistance

      public static Double getDefaultHideDistance()
    • setDefaultHideDistance

      public static void setDefaultHideDistance(double hideDistance)
      When the player is far enough, the NPC will temporally hide, in order to be more efficient. And when the player approach, the NPC will be unhidden.
      Parameters:
      hideDistance - the distance in blocks
      See Also:
      getHideDistance(), setHideDistance(double), getDefaultHideDistance()
    • isGlowing

      public boolean isGlowing()
    • isDefaultGlowing

      public static boolean isDefaultGlowing()
    • setDefaultGlowing

      public static void setDefaultGlowing(boolean glowing)
    • getGlowingColor

      public NPC.Color getGlowingColor()
    • getDefaultGlowingColor

      public static NPC.Color getDefaultGlowingColor()
    • setDefaultGlowingColor

      public static void setDefaultGlowingColor(@Nullable org.bukkit.ChatColor color)
    • getGazeTrackingType

      public NPC.GazeTrackingType getGazeTrackingType()
    • getDefaultGazeTrackingType

      public static NPC.GazeTrackingType getDefaultGazeTrackingType()
    • setDefaultGazeTrackingType

      public static void setDefaultGazeTrackingType(@Nullable NPC.GazeTrackingType followLookType)
    • getCustomTabListName

      public String getCustomTabListName()
    • getDefaultTabListName

      public static String getDefaultTabListName()
    • setDefaultCustomTabListName

      public static void setDefaultCustomTabListName(@Nonnull String customTabListName)
    • isShowOnTabList

      public boolean isShowOnTabList()
    • isDefaultShowOnTabList

      public boolean isDefaultShowOnTabList()
    • setDefaultShowOnTabList

      public static void setDefaultShowOnTabList(boolean showOnTabList)
    • getInteractCooldown

      public Long getInteractCooldown()
    • getDefaultInteractCooldown

      public static Long getDefaultInteractCooldown()
    • setDefaultInteractCooldown

      public static void setDefaultInteractCooldown(long interactCooldown)
    • getLineSpacing

      public Double getLineSpacing()
    • getDefaultLineSpacing

      public static Double getDefaultLineSpacing()
    • setDefaultLineSpacing

      public static void setDefaultLineSpacing(double lineSpacing)
    • getTextAlignment

      public org.bukkit.util.Vector getTextAlignment()
    • getDefaultTextAlignment

      public static org.bukkit.util.Vector getDefaultTextAlignment()
    • setDefaultTextAlignment

      public static void setDefaultTextAlignment(org.bukkit.util.Vector textAlignment)
    • getPose

      public NPC.Pose getPose()
    • getDefaultPose

      public static NPC.Pose getDefaultPose()
    • setDefaultPose

      public static void setDefaultPose(@Nullable NPC.Pose npcPose)
    • getDefaultTextOpacity

      public static NPC.Hologram.Opacity getDefaultTextOpacity()
    • getTextOpacity

      public NPC.Hologram.Opacity getTextOpacity()
    • setDefaultTextOpacity

      public static void setDefaultTextOpacity(@Nullable NPC.Hologram.Opacity textOpacity)
    • isOnFire

      public boolean isOnFire()
    • isDefaultOnFire

      public static boolean isDefaultOnFire()
    • setDefaultOnFire

      public static void setDefaultOnFire(boolean onFire)
    • getMoveSpeed

      public double getMoveSpeed()
    • getDefaultMoveSpeed

      public static Double getDefaultMoveSpeed()
    • setLineOpacity

      public void setLineOpacity(int line, NPC.Hologram.Opacity opacity)
    • getLineOpacity

      public NPC.Hologram.Opacity getLineOpacity(int line)
    • resetLineOpacity

      public void resetLineOpacity(int line)
    • resetLinesOpacity

      public void resetLinesOpacity()