RuneHive-Game
Loading...
Searching...
No Matches
PlayerEventListener.java
Go to the documentation of this file.
1package com.runehive.game.event.listener;
2
3import com.runehive.game.event.Event;
4import com.runehive.game.world.entity.mob.player.Player;
5
6/**
7 * The type of event listener that will listen for player-related events
8 *
9 * @author nshusa
10 */
11public interface PlayerEventListener extends EventListener {
12
13 /**
14 * The method that allows an event listener to accept an event.
15 *
16 * @param player
17 * The player that is sending the event.
18 *
19 * @param event
20 * The event that is being sent.
21 *
22 * @return {@code true} If the event was handled. Otherwise return {@code false}.
23 */
24 boolean accept(Player player, Event event);
25
26}
This class represents a character controlled by a player.
Definition Player.java:125
The base event listener that will listen for any type of event.
The type of event listener that will listen for player-related events.
boolean accept(Player player, Event event)
The method that allows an event listener to accept an event.
Definition Event.kt:9