Uses of Enum Class
net.risingworld.api.definitions.Npcs.Behaviour
Packages that use Npcs.Behaviour
-
Uses of Npcs.Behaviour in net.risingworld.api.definitions
Fields in net.risingworld.api.definitions declared as Npcs.BehaviourMethods in net.risingworld.api.definitions that return Npcs.BehaviourModifier and TypeMethodDescriptionstatic Npcs.Behaviour
Npcs.Behaviour.get
(int value) static Npcs.Behaviour
Returns the enum constant of this class with the specified name.static Npcs.Behaviour[]
Npcs.Behaviour.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Npcs.Behaviour in net.risingworld.api.objects
Methods in net.risingworld.api.objects that return Npcs.BehaviourModifier and TypeMethodDescriptionNpc.getBehaviour()
Gets the currently active behaviour of this particular npc.Methods in net.risingworld.api.objects with parameters of type Npcs.BehaviourModifier and TypeMethodDescriptionvoid
Npc.setBehaviour
(Npcs.Behaviour behaviour) Overrides the behaviour of this particular npc, i.e how it behaves when seeing a player.
This setting is saved to the npc database, so it's still active after a server restart!
Note: In many cases it's also necessary to update the attack reaction of the npc (seeNpc.setAttackReaction(Npcs.AttackReaction)
)!