Skip to content

Commit a22a428

Browse files
committed
Make ProvideServiceEvent.EngineScoped BiGenericEvent
1 parent 0884da8 commit a22a428

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/main/java/org/spongepowered/api/event/lifecycle/ProvideServiceEvent.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
package org.spongepowered.api.event.lifecycle;
2626

2727
import org.spongepowered.api.Engine;
28+
import org.spongepowered.api.event.BiGenericEvent;
2829
import org.spongepowered.api.event.GenericEvent;
2930
import org.spongepowered.eventgen.annotations.NoFactoryMethod;
3031

@@ -72,18 +73,12 @@ interface GameScoped<T> extends ProvideServiceEvent<T> {
7273
* <p>It is up to the provider to determine which engine a service is to be
7374
* supplied for. Services that are engine scoped may not support all
7475
* engines. Plugins can check to see what {@link Engine} the service will
75-
* be provided for via the {@link #engine()} method, and can choose to
76+
* be provided for via the {@link E} type parameter, and can choose to
7677
* forgo providing a service based on this information.</p>
7778
*
7879
* @param <T> The service to provide.
80+
* @param <E> The target engine.
7981
*/
80-
interface EngineScoped<T> extends ProvideServiceEvent<T> {
81-
82-
/**
83-
* Gets the {@link Engine} that is associated with this event.
84-
*
85-
* @return The engine.
86-
*/
87-
Engine engine();
82+
interface EngineScoped<T, E extends Engine> extends ProvideServiceEvent<T>, BiGenericEvent<T, E> {
8883
}
8984
}

0 commit comments

Comments
 (0)