Uses of Class
net.risingworld.api.objects.Npc
Packages that use Npc
Package
Description
-
Uses of Npc in net.risingworld.api
Methods in net.risingworld.api that return NpcModifier and TypeMethodDescriptionstatic Npc
World.findNearestNpc
(float x, float y, float z) Gets the npc (any npc) which has the shortest distance to a world position.static Npc
World.findNearestNpc
(short typeID, float x, float y, float z) Gets the npc (with a certain type id) which has the shortest distance to a world position.static Npc
World.findNearestNpc
(short typeID, Vector3f position) Gets the npc (with a certain type id) which has the shortest distance to a world position.static Npc
World.findNearestNpc
(Vector3f position) Gets the npc (any npc) which has the shortest distance to a world position.static Npc[]
World.getAllNpcs()
Gets all npcs which are spawned in this world.static Npc[]
World.getAllNpcs
(short typeID) Gets all npcs in the world with the provided type ID.static Npc[]
World.getAllNpcsInArea
(Area area) Gets all npcs which are inside an area.static Npc[]
World.getAllNpcsInRange
(short typeID, Vector3f position, float range) Gets all npcs with the provided type ID which are in range to a specific world position.static Npc[]
World.getAllNpcsInRange
(Vector3f position, float range) Gets all npcs which are in range to a specific world position.static Npc
World.getNpc
(long globalID) Gets the npc with the provided id.static Npc
World.spawnNpc
(short typeID, int variant, Vector3f position, Quaternion rotation) Spawns a new npc in the world.static Npc
World.spawnNpc
(short typeID, int variant, Vector3f position, Quaternion rotation, boolean temporary) Spawns a new npc in the world.static Npc
World.spawnNpc
(short typeID, Vector3f position, Quaternion rotation) Spawns a new npc in the world. -
Uses of Npc in net.risingworld.api.events.npc
Methods in net.risingworld.api.events.npc that return NpcModifier and TypeMethodDescriptionNpcHitNpcEvent.getAttacker()
Gets the attacking npc, i.e the npc who hit the target npc.NpcAddClothesEvent.getNpc()
Gets the affected npc.NpcAddSaddleBagEvent.getNpc()
Gets the npc/mount a saddle bag will be attached to.NpcAddSaddleEvent.getNpc()
Gets the npc/mount a saddle will be added to.NpcDamageEvent.getNpc()
Gets the npc which died.NpcDeathEvent.getNpc()
Gets the npc which died.NpcHitNpcEvent.getNpc()
Gets the target npc, i.e the npc which was hit by the attacker.NpcRemoveClothesEvent.getNpc()
Gets the affected npc.NpcRemoveSaddleBagEvent.getNpc()
Gets the npc/mount the saddle bag is about to be removed from.NpcRemoveSaddleEvent.getNpc()
Gets the npc/mount the saddle is about to be removed from.NpcSpawnEvent.getNpc()
Gets the npc that is about to spawn.NpcTransformEvent.getNpc()
Gets the npc that's about to transform. -
Uses of Npc in net.risingworld.api.events.player
Methods in net.risingworld.api.events.player that return Npc -
Uses of Npc in net.risingworld.api.objects
Methods in net.risingworld.api.objects that return NpcModifier and TypeMethodDescriptionPlayer.getMount()
Gets the mount the player is currently riding on.Method parameters in net.risingworld.api.objects with type arguments of type NpcModifier and TypeMethodDescriptionvoid
Player.getNpcInLineOfSight
(float distance, Callback<Npc> callback) Gets the npc in line-of-sight of the player (i.e the npc the player is currently looking at). -
Uses of Npc in net.risingworld.api.worldelements
Methods in net.risingworld.api.worldelements with parameters of type NpcModifier and TypeMethodDescriptionvoid
GameObject.attachTo
(Npc npc, GameObject.AttachTarget target) Attaches the game object to an npc.