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 TypeMethodDescriptionbooleanbooleancanSee()voidcreate()voiddestroy()followPlayer(double min, double max)voidvoidnet.minecraft.server.level.EntityPlayerorg.bukkit.entity.Playerbooleanvoidhide()voidhit()booleanbooleanbooleanbooleanisInView()booleanisInView(double fov)booleanisShown()booleanvoidlookAt(float yaw, float pitch)voidplayAnimation(NPC.Animation animation)voidsetCustomTabListName(String name)voidsetHideText(boolean hide)voidshow()voidteleport(org.bukkit.World world, double x, double y, double z, float yaw, float pitch)voidupdate()voidMethods 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:
setCustomTabListNamein classNPC
-
followPlayer
-
followPlayer
-
playAnimation
- Specified by:
playAnimationin 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
-