/** * Gets whether or not this event is cancelled. This is based off of the * Result value returned by {@link #getResult()}. Result.ALLOW and * Result.DEFAULT will result in a returned value of false, but * Result.DENY will result in a returned value of true. * <p> * {@inheritDoc} * * @return whether the event is cancelled */ public boolean isCancelled() { return getResult() == Result.DENY; }
/** * Gets whether or not this event is cancelled. This is based off of the * Result value returned by {@link #getResult()}. Result.ALLOW and * Result.DEFAULT will result in a returned value of false, but * Result.DENY will result in a returned value of true. * <p> * {@inheritDoc} * * @return whether the event is cancelled */ public boolean isCancelled() { return getResult() == Result.DENY; }
@Override public MCResult getResult() { return BukkitMCResult.getConvertor().getAbstractedEnum(iie.getResult()); }