Add entity event base class

This commit is contained in:
KingRainbow44 2022-06-24 01:21:06 -04:00
parent 20b2554e39
commit 47f3353342

View File

@ -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;
}
}