Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
47f33533
Commit
47f33533
authored
Jun 24, 2022
by
KingRainbow44
Browse files
Add entity event base class
parent
20b2554e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/event/types/EntityEvent.java
0 → 100644
View file @
47f33533
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment