RuneHive-Game
Loading...
Searching...
No Matches
OnKillEvent.java
Go to the documentation of this file.
1
package
com.runehive.content.event.impl;
2
3
import
com.runehive.game.world.entity.mob.Mob;
4
import
com.runehive.content.event.InteractionEvent;
5
6
/**
7
* @author <a href="http://www.rune-server.org/members/stand+up/">Stand Up</a>
8
* @since 16-6-2017.
9
*/
10
public
final
class
OnKillEvent
extends
InteractionEvent
{
11
12
private
final
Mob
victim
;
13
14
public
OnKillEvent
(
Mob
victim
) {
15
super(
InteractionType
.
ON_KILL
);
16
this.victim =
victim
;
17
}
18
19
public
Mob
getVictim
() {
20
return
victim
;
21
}
22
}
com.runehive.content.event.InteractionEvent.InteractionEvent
InteractionEvent(InteractionType type)
Definition
InteractionEvent.java:41
com.runehive.content.event.impl.OnKillEvent.victim
final Mob victim
Definition
OnKillEvent.java:12
com.runehive.content.event.impl.OnKillEvent.OnKillEvent
OnKillEvent(Mob victim)
Definition
OnKillEvent.java:14
com.runehive.content.event.impl.OnKillEvent.getVictim
Mob getVictim()
Definition
OnKillEvent.java:19
com.runehive.game.world.entity.mob.Mob
Handles the mob class.
Definition
Mob.java:66
com.runehive.content.event.InteractionEvent.InteractionType
Definition
InteractionEvent.java:5
com.runehive.content.event.InteractionEvent.InteractionType.ON_KILL
ON_KILL
Definition
InteractionEvent.java:30