Closed Technici4n closed 11 months ago
As far as I can tell it's just a matter of adding such a method to Event:
Event
protected void reset() { isCanceled = false; result = Result.DEFAULT; phase = null; }
(event.setCanceled(false).setResult(Result.DEFAULT).setPhase(null) will not work due to setPhase)
event.setCanceled(false).setResult(Result.DEFAULT).setPhase(null)
setPhase
Of course, this should come with a nice test too.
There is no phase tracking anymore, so .setCanceled(false).setResult(Result.DEFAULT) can be used to reset events.
.setCanceled(false).setResult(Result.DEFAULT)
As far as I can tell it's just a matter of adding such a method to
Event
:(
event.setCanceled(false).setResult(Result.DEFAULT).setPhase(null)
will not work due tosetPhase
)Of course, this should come with a nice test too.