Uses of Enum Class
net.risingworld.api.definitions.Npcs.AttackReaction
-
Uses of Npcs.AttackReaction in net.risingworld.api.definitions
Modifier and TypeMethodDescriptionstatic Npcs.AttackReaction
Npcs.AttackReaction.get
(int value) static Npcs.AttackReaction
Returns the enum constant of this class with the specified name.static Npcs.AttackReaction[]
Npcs.AttackReaction.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Npcs.AttackReaction in net.risingworld.api.objects
Modifier and TypeMethodDescriptionNpc.getAttackReaction()
Gets the currently active attack reaction of this particular npc.Modifier and TypeMethodDescriptionvoid
Npc.setAttackReaction
(Npcs.AttackReaction attackReaction) Overrides the attack reaction of this specific npc, i.e how it reacts when being attacked by a player.
This setting is saved to the npc database, so it's still active after a server restart!