Class PlayerAdvancementScreenEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
moe.caramel.daydream.event.player.PlayerAdvancementScreenEvent
- All Implemented Interfaces:
Cancellable
@NullMarked
public final class PlayerAdvancementScreenEvent
extends PlayerEvent
implements Cancellable
플레이어가 발전 과제 화면을 열거나 닫았을 경우 호출됩니다.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerAdvancementScreenEvent(Player player, PlayerAdvancementScreenEvent.Action action, @Nullable NamespacedKey key) -
Method Summary
Modifier and TypeMethodDescription플레이어가 요청한 액션을 가져옵니다.static HandlerListgetKey()플레이어가 요청한 탭의NamespacedKey를 가져옵니다.boolean발전 과제 화면을 닫을지의 여부를 가져옵니다.voidsetCancelled(boolean cancel) 스크린을 닫을지의 여부를 가져옵니다.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
PlayerAdvancementScreenEvent
@Internal public PlayerAdvancementScreenEvent(Player player, PlayerAdvancementScreenEvent.Action action, @Nullable NamespacedKey key)
-
-
Method Details
-
isCancelled
public boolean isCancelled()발전 과제 화면을 닫을지의 여부를 가져옵니다.- Specified by:
isCancelledin interfaceCancellable- Returns:
true인 경우 스크린을 닫습니다.PlayerAdvancementScreenEvent.Action.CLOSED_SCREEN인 경우 작동하지 않습니다.
-
setCancelled
public void setCancelled(boolean cancel) 스크린을 닫을지의 여부를 가져옵니다. 인수가true인 경우 스크린을 닫으나,PlayerAdvancementScreenEvent.Action.CLOSED_SCREEN인 경우 작동하지 않습니다.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueif you wish to cancel this event
-
getAction
플레이어가 요청한 액션을 가져옵니다.- Returns:
- 플레이어의 요청
-
getKey
플레이어가 요청한 탭의NamespacedKey를 가져옵니다.- Returns:
- 플레이어가 요청한 탭의
NamespacedKey.PlayerAdvancementScreenEvent.Action.CLOSED_SCREEN인 경우null을 반환합니다.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-