LunaChat v3-k2 : Implement Backward Compatibility. (WIP)

このコミットが含まれているのは:
ucchy committed 2020-06-10 01:12:35 +09:00
1 親 a08c043055
コミット 172e64aa50
27ファイル変更
+2364 -24

検索条件に一致するファイルはありません

+43
ファイルの表示
@@ -0,0 +1,43 @@
/*
* @author ucchy
* @license LGPLv3
* @copyright Copyright ucchy 2013
*/
package com.github.ucchyocean.lc.event;
import org.bukkit.event.Cancellable;
/**
* 基底のキャンセル可能イベントクラス
* @author ucchy
*/
public class LunaChatBaseCancellableEvent extends LunaChatBaseEvent implements Cancellable {
private boolean isCancelled;
/**
* コンストラクタ
* @param channelName チャンネル名
*/
public LunaChatBaseCancellableEvent(String channelName) {
super(channelName);
}
/**
* イベントがキャンセルされたかどうかをかえす
* @see org.bukkit.event.Cancellable#isCancelled()
*/
@Override
public boolean isCancelled() {
return isCancelled;
}
/**
* イベントをキャンセルするかどうかを設定する
* @see org.bukkit.event.Cancellable#setCancelled(boolean)
*/
@Override
public void setCancelled(boolean cancelled) {
isCancelled = cancelled;
}
}