mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-28 18:21:02 +01:00
Mark BentoBoxEvent getHandler methods as deprecated.
See https://github.com/BentoBoxWorld/BentoBox/pull/1615
This commit is contained in:
parent
aec2e115eb
commit
f5b2b136e9
@ -18,6 +18,7 @@ import world.bentobox.bentobox.BentoBox;
|
||||
* Provides the default methods expected when extending {@link Event}.
|
||||
* @author tastybento
|
||||
* @since 1.5.3
|
||||
*
|
||||
*/
|
||||
public abstract class BentoBoxEvent extends Event {
|
||||
|
||||
@ -40,11 +41,25 @@ public abstract class BentoBoxEvent extends Event {
|
||||
super(async);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HandlerList
|
||||
* @deprecated this method will no longer be in future versions of the BentoBoxEvent.
|
||||
* Each event must declare its own static handler and handler methods.
|
||||
* Will be removed by https://github.com/BentoBoxWorld/BentoBox/pull/1615
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public HandlerList getHandlers() {
|
||||
return getHandlerList();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HandlerList
|
||||
* @deprecated this method will no longer be in future versions of the BentoBoxEvent.
|
||||
* Each event must declare its own static handler and handler methods.
|
||||
* Will be removed by https://github.com/BentoBoxWorld/BentoBox/pull/1615
|
||||
*/
|
||||
@Deprecated
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user