forked from GeyserMC/Geyser
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: * Clean up lot of duplicated code * Move execution to relevant classes to more easily allow overriding behaviour later * Support a Filter keyword for Events. This allows registering to an event but filtering which ones actually execute the handler based upon a passed in class. This also indirectly supports Generic TypeVariable events better * Update DownStream and Upstream packet events to have a TypeVariable of the packet type. This allows getting the correct packet in the handler * Remove Context as I don't need it anymore * Implement a Builder pattern for LambdaEventHandlers to more easily allow adding or extending. * Plugins now have their own EventHandler to provide plugin specific features * Implement DownstreamPacketSendEvent, DownstreamPacketReceiveEvent, UpstreamPacketReceiveEvent, UpstreamPacketSendEvent
- Loading branch information
Showing
22 changed files
with
595 additions
and
308 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
connector/src/main/java/org/geysermc/connector/event/EventContext.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
connector/src/main/java/org/geysermc/connector/event/EventRegisterResult.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,4 @@ | |
package org.geysermc.connector.event.events; | ||
|
||
public abstract class GeyserEvent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.