Skip to content

Commit

Permalink
Deprecate the old method
Browse files Browse the repository at this point in the history
  • Loading branch information
walksanatora committed Aug 23, 2024
1 parent 621279d commit eacf403
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public static void addCreateEventListener(BiConsumer<CastingEnvironment, Compoun

/**
* Add a listener that will be called whenever a new CastingEnvironment is created (legacy).
* @deprecated replaced by {@link #addCreateEventListener(BiConsumer)}
*/
@Deprecated(since = "0.11.0-pre-660")
public static void addCreateEventListener(Consumer<CastingEnvironment> listener) {
createEventListeners.add((env, data) -> {listener.accept(env);});
}
Expand Down

0 comments on commit eacf403

Please sign in to comment.