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 TypeMethodDescriptionvoidapplyNPC(NPC.Personal npc)voidapplyNPC(NPC.Personal npc, boolean forceUpdate)voidapplyNPC(Collection<NPC.Personal> npc)voidapplyNPC(Collection<NPC.Personal> npc, boolean forceUpdate)org.bukkit.inventory.ItemStackgetBoots()org.bukkit.inventory.ItemStackstatic NPC.Attributesstatic org.bukkit.inventory.ItemStackstatic org.bukkit.inventory.ItemStackstatic NPC.GazeTrackingTypestatic NPC.Colorstatic org.bukkit.inventory.ItemStackstatic Doublestatic Longstatic org.bukkit.inventory.ItemStackgetDefaultItem(NPC.Slot slot)static org.bukkit.inventory.ItemStackstatic Doublestatic Doublestatic NPC.Posestatic NPC.Skinstatic Stringstatic org.bukkit.util.Vectorstatic NPC.Hologram.Opacityorg.bukkit.inventory.ItemStackorg.bukkit.inventory.ItemStackorg.bukkit.inventory.ItemStackgetLineOpacity(int line)doublestatic NPC.AttributesgetNPCAttributes(NPC npc)getPose()getSkin()getText()org.bukkit.util.Vectorbooleanstatic booleanstatic booleanstatic booleanbooleanbooleanbooleanisOnFire()booleanvoidresetLineOpacity(int line)voidstatic voidsetDefaultBoots(org.bukkit.inventory.ItemStack itemStack)static voidsetDefaultChestPlate(org.bukkit.inventory.ItemStack itemStack)static voidsetDefaultCollidable(boolean collidable)static voidsetDefaultCustomTabListName(String customTabListName)static voidsetDefaultGazeTrackingType(NPC.GazeTrackingType followLookType)static voidsetDefaultGlowing(boolean glowing)static voidsetDefaultGlowingColor(org.bukkit.ChatColor color)static voidsetDefaultHelmet(org.bukkit.inventory.ItemStack itemStack)static voidsetDefaultHideDistance(double hideDistance)When the player is far enough, the NPC will temporally hide, in order to be more efficient.static voidsetDefaultInteractCooldown(long interactCooldown)static voidsetDefaultItem(NPC.Slot slot, org.bukkit.inventory.ItemStack itemStack)static voidsetDefaultLeggings(org.bukkit.inventory.ItemStack itemStack)static voidsetDefaultLineSpacing(double lineSpacing)static voidsetDefaultOnFire(boolean onFire)static voidsetDefaultPose(NPC.Pose npcPose)static voidsetDefaultShowOnTabList(boolean showOnTabList)static voidsetDefaultSkin(NPC.Skin npcSkin)static voidsetDefaultSkinParts(NPC.Skin.Parts skinParts)static voidsetDefaultText(List<String> text)static voidsetDefaultTextAlignment(org.bukkit.util.Vector textAlignment)static voidsetDefaultTextOpacity(NPC.Hologram.Opacity textOpacity)voidsetLineOpacity(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()
-