Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

Added extra priorities to support Sponge #518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Raphfrk
Copy link

@Raphfrk Raphfrk commented Sep 16, 2014

Sponge has 4 extra priority levels. This expands the EventPriority enum so that the extra priorities are supported.

It also adds a .getBusID() method to the EventBus class. This means that the Sponge event system can directly submit events to the ListenerLists associated with Forge events.

@@ -147,6 +147,10 @@ public boolean post(Event event)
return (event.isCancelable() ? event.isCanceled() : false);
}

public int getbusID() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"getBusID" - forgot to uppercase the B ;)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

HIGHEST, //First to execute
PRE, //First to execute. Cancellation is not allowed
AFTER_PRE, //Cancellation is not allowed
HIGHEST, //First standard priority to execute
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still dont agree with adding this new things. It gives no extra functionality besides 'I wanna have more!'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It means we can do a one to one mapping of the priorities.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that is your intention, however, I've had discussions about this. As i said, Sponge shouldn't be adding more for the sake of having more...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants