Uses of Class
net.risingworld.api.events.player.PlayerNpcEvent
Packages that use PlayerNpcEvent
-
Uses of PlayerNpcEvent in net.risingworld.api.events.player
Subclasses of PlayerNpcEvent in net.risingworld.api.events.playerModifier and TypeClassDescriptionfinal classCalled when a player dismounts an npc / animal (e.g a horse).final classCalled when a player hits / attacks an npc.final classCalled when a player mounts an npc / animal (e.g a horse).final classCalled when a player feeds an npc, i.e uses the interaction key on an animal while holding a food item the animal accepts (see npc feeding definitions).
Cancelling this event prevents the feeding entirely: no item is consumed and the npc receives no hunger, taming or health changes.final classCalled when a player interacts (i.e presses the interaction key) with an npc.final classCalled when a player accesses the inventory of an npc (when he accesses the saddle bags of a mount, for example).final classCalled when a player leashes an npc.final classCalled when a player tries to pick up an npc (typically a small or baby animal).final classCalled when a player shears an npc.final classCalled when a player unleashes an npc.