Verwendungen von Klasse
net.risingworld.api.objects.Npc
Package
Beschreibung
-
Verwendungen von Npc in net.risingworld.api
Modifizierer und TypMethodeBeschreibungstatic 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. -
Verwendungen von Npc in net.risingworld.api.events.npc
Modifizierer und TypMethodeBeschreibungNpcHitNpcEvent.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. -
Verwendungen von Npc in net.risingworld.api.events.player
-
Verwendungen von Npc in net.risingworld.api.objects
Modifizierer und TypMethodeBeschreibungPlayer.getMount()
Gets the mount the player is currently riding on.Modifizierer und TypMethodeBeschreibungvoid
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). -
Verwendungen von Npc in net.risingworld.api.worldelements
Modifizierer und TypMethodeBeschreibungvoid
GameObject.attachTo
(Npc npc, GameObject.AttachTarget target) Attaches the game object to an npc.