Package com.marcusslover.plus.lib.events
Class Events
java.lang.Object
com.marcusslover.plus.lib.events.Events
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.bukkit.event.Event>
@NotNull EventReference<T> Deprecated.Listens to an event.static <T extends org.bukkit.event.Event>
@NotNull EventReference<T> Deprecated.static <T extends org.bukkit.event.Event>
@NotNull EventReference<T> Deprecated.Listens to an event.static voidregister(@NotNull org.bukkit.event.Listener listener, @NotNull org.bukkit.plugin.Plugin plugin) Deprecated.Registers a listener.static voidunregister(@NotNull org.bukkit.event.Listener listener) Deprecated.Unregisters a listener.
-
Constructor Details
-
Events
public Events()Deprecated.
-
-
Method Details
-
listen
@NotNull public static <T extends org.bukkit.event.Event> @NotNull EventReference<T> listen(@NotNull @NotNull Class<T> type) Deprecated.Listens to an event.- Type Parameters:
T- the type of the event- Parameters:
type- the event type- Returns:
- the event reference
-
listen
@NotNull public static <T extends org.bukkit.event.Event> @NotNull EventReference<T> listen(@NotNull @NotNull Class<T> type, @Nullable @Nullable Consumer<T> handler) Deprecated.Listens to an event.- Type Parameters:
T- the type of the event- Parameters:
type- the event typehandler- the event handler- Returns:
- the event reference
- Since:
- 4.1.0
-
register
public static void register(@NotNull @NotNull org.bukkit.event.Listener listener, @NotNull @NotNull org.bukkit.plugin.Plugin plugin) Deprecated.Registers a listener.- Parameters:
listener- the listenerplugin- the plugin- Since:
- 4.1.0
-
unregister
public static void unregister(@NotNull @NotNull org.bukkit.event.Listener listener) Deprecated.Unregisters a listener.- Parameters:
listener- the listener- Since:
- 4.1.0
-
listen
@Deprecated @NotNull public static <T extends org.bukkit.event.Event> @NotNull EventReference<T> listen(@NotNull @NotNull Class<T> type, @NotNull @NotNull Class<? extends T>... classes) Deprecated.Listens to multiple events.- Type Parameters:
T- the type of the event- Parameters:
type- the event typeclasses- the classes- Returns:
- the event reference
-