Package dev.sergiferry.playernpc.api
Class NPC.Attributes
java.lang.Object
dev.sergiferry.playernpc.api.NPC.Attributes
- Enclosing class:
- NPC
- Since:
- 2022.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyNPC(NPC.Personal npc)
void
applyNPC(NPC.Personal npc, boolean forceUpdate)
void
applyNPC(Collection<NPC.Personal> npc)
void
applyNPC(Collection<NPC.Personal> npc, boolean forceUpdate)
org.bukkit.inventory.ItemStack
getBoots()
org.bukkit.inventory.ItemStack
static NPC.Attributes
static org.bukkit.inventory.ItemStack
static org.bukkit.inventory.ItemStack
static NPC.GazeTrackingType
static NPC.Color
static org.bukkit.inventory.ItemStack
static Double
static Long
static org.bukkit.inventory.ItemStack
getDefaultItem(NPC.Slot slot)
static org.bukkit.inventory.ItemStack
static Double
static Double
static NPC.Pose
static NPC.Skin
static String
static org.bukkit.util.Vector
static NPC.Hologram.Opacity
org.bukkit.inventory.ItemStack
org.bukkit.inventory.ItemStack
org.bukkit.inventory.ItemStack
getLineOpacity(int line)
double
static NPC.Attributes
getNPCAttributes(NPC npc)
getPose()
getSkin()
getText()
org.bukkit.util.Vector
boolean
static boolean
static boolean
static boolean
boolean
boolean
boolean
isOnFire()
boolean
void
resetLineOpacity(int line)
void
static void
setDefaultBoots(org.bukkit.inventory.ItemStack itemStack)
static void
setDefaultChestPlate(org.bukkit.inventory.ItemStack itemStack)
static void
setDefaultCollidable(boolean collidable)
static void
setDefaultCustomTabListName(String customTabListName)
static void
setDefaultGazeTrackingType(NPC.GazeTrackingType followLookType)
static void
setDefaultGlowing(boolean glowing)
static void
setDefaultGlowingColor(org.bukkit.ChatColor color)
static void
setDefaultHelmet(org.bukkit.inventory.ItemStack itemStack)
static void
setDefaultHideDistance(double hideDistance)
When the player is far enough, the NPC will temporally hide, in order to be more efficient.static void
setDefaultInteractCooldown(long interactCooldown)
static void
setDefaultItem(NPC.Slot slot, org.bukkit.inventory.ItemStack itemStack)
static void
setDefaultLeggings(org.bukkit.inventory.ItemStack itemStack)
static void
setDefaultLineSpacing(double lineSpacing)
static void
setDefaultOnFire(boolean onFire)
static void
setDefaultPose(NPC.Pose npcPose)
static void
setDefaultShowOnTabList(boolean showOnTabList)
static void
setDefaultSkin(NPC.Skin npcSkin)
static void
setDefaultSkinParts(NPC.Skin.Parts skinParts)
static void
setDefaultText(List<String> text)
static void
setDefaultTextAlignment(org.bukkit.util.Vector textAlignment)
static void
setDefaultTextOpacity(NPC.Hologram.Opacity textOpacity)
void
setLineOpacity(int line, NPC.Hologram.Opacity opacity)
-
Method Details
-
applyNPC
-
applyNPC
-
applyNPC
-
applyNPC
-
getDefault
-
getNPCAttributes
-
getSkin
-
getSkinParts
-
getDefaultSkin
-
setDefaultSkinParts
-
setDefaultSkin
-
getText
-
getDefaultText
-
setDefaultText
-
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
-
getDefaultItem
-
isCollidable
public boolean isCollidable() -
isDefaultCollidable
public static boolean isDefaultCollidable() -
setDefaultCollidable
public static void setDefaultCollidable(boolean collidable) -
getHideDistance
-
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
-
getDefaultGlowingColor
-
setDefaultGlowingColor
public static void setDefaultGlowingColor(@Nullable org.bukkit.ChatColor color) -
getGazeTrackingType
-
getDefaultGazeTrackingType
-
setDefaultGazeTrackingType
-
getCustomTabListName
-
getDefaultTabListName
-
setDefaultCustomTabListName
-
isShowOnTabList
public boolean isShowOnTabList() -
isDefaultShowOnTabList
public boolean isDefaultShowOnTabList() -
setDefaultShowOnTabList
public static void setDefaultShowOnTabList(boolean showOnTabList) -
getInteractCooldown
-
getDefaultInteractCooldown
-
setDefaultInteractCooldown
public static void setDefaultInteractCooldown(long interactCooldown) -
getLineSpacing
-
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
-
getDefaultPose
-
setDefaultPose
-
getDefaultTextOpacity
-
getTextOpacity
-
setDefaultTextOpacity
-
isOnFire
public boolean isOnFire() -
isDefaultOnFire
public static boolean isDefaultOnFire() -
setDefaultOnFire
public static void setDefaultOnFire(boolean onFire) -
getMoveSpeed
public double getMoveSpeed() -
getDefaultMoveSpeed
-
setLineOpacity
-
getLineOpacity
-
resetLineOpacity
public void resetLineOpacity(int line) -
resetLinesOpacity
public void resetLinesOpacity()
-