Package dev.sergiferry.playernpc.api
Class NPC.Personal
java.lang.Object
dev.sergiferry.playernpc.api.NPC
dev.sergiferry.playernpc.api.NPC.Personal
- Enclosing class:
- NPC
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.sergiferry.playernpc.api.NPC
NPC.Animation, NPC.Attributes, NPC.Color, NPC.Events, NPC.GazeTrackingType, NPC.Global, NPC.Hologram, NPC.Interact, NPC.Move, NPC.Personal, NPC.Placeholders, NPC.Pose, NPC.Skin, NPC.Slot
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canSee()
void
create()
void
destroy()
followPlayer(double min, double max)
void
void
net.minecraft.server.level.EntityPlayer
org.bukkit.entity.Player
boolean
void
hide()
void
hit()
boolean
boolean
boolean
boolean
isInView()
boolean
isInView(double fov)
boolean
isShown()
boolean
void
lookAt(float yaw, float pitch)
void
playAnimation(NPC.Animation animation)
void
setCustomTabListName(String name)
void
setHideText(boolean hide)
void
show()
void
teleport(org.bukkit.World world, double x, double y, double z, float yaw, float pitch)
void
update()
void
Methods inherited from class dev.sergiferry.playernpc.api.NPC
addActionBarMessageClickAction, addActionBarMessageClickAction, addConnectBungeeServerClickAction, addConnectBungeeServerClickAction, addCustomClickAction, addCustomClickAction, addMessageClickAction, addMessageClickAction, addRunConsoleCommandClickAction, addRunConsoleCommandClickAction, addRunPlayerCommandClickAction, addRunPlayerCommandClickAction, addTeleportToLocationClickAction, addTeleportToLocationClickAction, addTitleMessageClickAction, addTitleMessageClickAction, cancelMove, cancelMoveBehaviour, clearEquipment, clearEquipment, clearSkin, clearText, follow, follow, follow, follow, follow, getAttributes, getClickActions, getCode, getCustomData, getCustomDataKeys, getCustomTabListName, getEquipment, getGazeTrackingType, getGlowingColor, getHideDistance, getInteractCooldown, getLineOpacity, getLineSpacing, getLocation, getMoveBehaviourType, getMoveSpeed, getMoveTask, getNPCLib, getPitch, getPlugin, getPluginManager, getPose, getSimpleCode, getSkin, getSkinParts, getText, getTextAlignment, getTextOpacity, getWorld, getX, getY, getYaw, getZ, goTo, goTo, goTo, goTo, hasCustomData, isCollidable, isGlowing, isOnFire, isShowOnTabList, lookAt, lookAt, removeClickAction, resetClickActions, resetClickActions, resetCustomTabListName, resetInteractCooldown, resetLineOpacity, resetLinesOpacity, resetLineSpacing, resetPose, resetTextAlignment, resetTextOpacity, setBoots, setChestPlate, setCollidable, setCrouching, setCustomData, setCustomTabListName, setFireTicks, setGazeTrackingType, setGlowing, setGlowing, setGlowing, setGlowingColor, setGlowingColor, setHelmet, setHideDistance, setInteractCooldown, setItem, setItemInLeftHand, setItemInRightHand, setLeggings, setLineOpacity, setLineSpacing, setMoveSpeed, setMoveSpeed, setOnFire, setPath, setPath, setPose, setRepetitivePath, setRepetitivePath, setShowOnTabList, setSkin, setSkin, setSkin, setSkin, setSkin, setSkin, setSkinVisiblePart, setSleeping, setSwimming, setText, setText, setText, setTextAlignment, setTextOpacity, teleport, teleport, teleport, teleport, teleport
-
Method Details
-
create
public void create() -
update
public void update() -
forceUpdate
public void forceUpdate() -
teleport
public void teleport(org.bukkit.World world, double x, double y, double z, float yaw, float pitch) -
updateText
public void updateText() -
forceUpdateText
public void forceUpdateText() -
destroy
public void destroy() -
show
public void show() -
hide
public void hide() -
setHideText
public void setHideText(boolean hide) -
setCustomTabListName
- Specified by:
setCustomTabListName
in classNPC
-
followPlayer
-
followPlayer
-
playAnimation
- Specified by:
playAnimation
in classNPC
-
hit
public void hit() -
lookAt
public void lookAt(float yaw, float pitch) -
getEntity
public net.minecraft.server.level.EntityPlayer getEntity() -
getShortUUID
-
isInView
public boolean isInView() -
isInView
public boolean isInView(double fov) -
isInRange
public boolean isInRange() -
getPlayer
public org.bukkit.entity.Player getPlayer() -
isShown
public boolean isShown() -
isShownOnClient
public boolean isShownOnClient() -
canSee
public boolean canSee() -
isHiddenText
public boolean isHiddenText() -
isCreated
public boolean isCreated() -
canBeCreated
public boolean canBeCreated() -
hasGlobal
public boolean hasGlobal() -
getGlobal
-