mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 05:04:20 +00:00
Add entity event base class
This commit is contained in:
parent
20b2554e39
commit
47f3353342
@ -0,0 +1,19 @@
|
||||
package emu.grasscutter.server.event.types;
|
||||
|
||||
import emu.grasscutter.game.entity.GameEntity;
|
||||
import emu.grasscutter.server.event.Event;
|
||||
|
||||
/**
|
||||
* An event that is related to entity interactions.
|
||||
*/
|
||||
public abstract class EntityEvent extends Event {
|
||||
protected final GameEntity entity;
|
||||
|
||||
public EntityEvent(GameEntity player) {
|
||||
this.entity = player;
|
||||
}
|
||||
|
||||
public GameEntity getEntity() {
|
||||
return this.entity;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user