mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Seal most event hierarchies (#10515)
Most events in Forge are not designed to be extended by mod devs but technically allowed it before this PR, leading to a risk of unintentional breaking changes for those that do. If you need to extend a Forge event, please let us know so that we can explicitly support that and design it with extending in mind. Note that this change does not affect making your own events that directly extend from EventBus' `Event` class.
This commit is contained in:
1 parent
81f7f029c3
commit
504dcad849
174 files changed
+371
-371
No files matched your search
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
* before tags and crafting recipes are sent to the client. Send datapack data
|
||||
* to clients when this event fires.
|
||||
*/
|
||||
public class OnDatapackSyncEvent extends Event {
|
||||
public final class OnDatapackSyncEvent extends Event {
|
||||
private final PlayerList playerList;
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in new issue
Block a user