Events are defined statically in normal classes and added handler for extensions to add their built-ins
This commit is contained in:
1 parent
815c75b827
commit
3105d5bb71
11 files changed
+126
-113
No files matched your search
@@ -65,14 +65,14 @@ public abstract class Entity_scarpetEventsMixin implements EntityInterface
|
||||
@Inject(method = "tick", at = @At("HEAD"))
|
||||
private void onTickCall(CallbackInfo ci)
|
||||
{
|
||||
events.onEvent(EntityEventsGroup.EntityEventType.ON_TICK);
|
||||
events.onEvent(EntityEventsGroup.Event.ON_TICK);
|
||||
}
|
||||
|
||||
|
||||
@Inject(method = "remove", at = @At("HEAD"))
|
||||
private void onRemove(CallbackInfo ci)
|
||||
{
|
||||
if (!removed) events.onEvent(EntityEventsGroup.EntityEventType.ON_REMOVED);
|
||||
if (!removed) events.onEvent(EntityEventsGroup.Event.ON_REMOVED);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user