Class PlayerBottleIntoItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
moe.caramel.daydream.event.player.PlayerBottleIntoItemEvent
- All Implemented Interfaces:
Cancellable
플레이어가 병에 무언가를 담았을 때 호출됩니다.
-
Nested Class Summary
Nested 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
ConstructorDescriptionPlayerBottleIntoItemEvent
(Player player, PlayerBottleIntoItemEvent.ItemType type, @Nullable Block clickedBlock, @Nullable Entity clickedEntity) -
Method Summary
Modifier and TypeMethodDescription플레이어가 상호 작용한 블록을 가져옵니다.플레이어가 상호 작용한 엔티티를 가져옵니다.static HandlerList
getType()
병에 담길 아이템의 타입을 가져옵니다.boolean
Gets the cancellation state of this event.void
setCancelled
(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
PlayerBottleIntoItemEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Cancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- true if you wish to cancel this event
-
getType
병에 담길 아이템의 타입을 가져옵니다.- Returns:
- 병에 담길 아이템의 타입
-
getClickedBlock
플레이어가 상호 작용한 블록을 가져옵니다.
PlayerBottleIntoItemEvent.ItemType.WATER
인 경우에만 null이 아닙니다.- Returns:
- 플레이어가 상호 작용한 블록
-
getClickedEntity
플레이어가 상호 작용한 엔티티를 가져옵니다.
PlayerBottleIntoItemEvent.ItemType.DRAGON_BREATH
인 경우에만 null이 아닙니다.- Returns:
- 플레이어가 상호 작용한 엔티티
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-