forked from MinecraftForge/EventBus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMutableEvent.java
More file actions
20 lines (18 loc) · 850 Bytes
/
MutableEvent.java
File metadata and controls
20 lines (18 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* Copyright (c) Forge Development LLC
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.eventbus.api.event;
import net.minecraftforge.eventbus.internal.Event;
import net.minecraftforge.eventbus.internal.MutableEventInternals;
/**
* For mutable event classes that may also extend other classes and/or support being extended.
* <p>More advanced techniques like protected fields and methods are also possible, where the supertype may be a
* protected abstract class with some internals handled for you, but only the concrete types are actual events.</p>
*
* <p>Consider {@link RecordEvent} for better performance and conciseness if field mutability and direct extendability
* aren't needed.</p>
*
* @see RecordEvent
*/
public non-sealed abstract class MutableEvent extends MutableEventInternals implements Event {}