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 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
ConstructorsConstructorDescriptionPlayerBottleIntoItemEvent(Player player, PlayerBottleIntoItemEvent.ItemType type, @Nullable Block clickedBlock, @Nullable Entity clickedEntity) -
Method Summary
Modifier and TypeMethodDescription플레이어가 상호 작용한 블록을 가져옵니다.플레이어가 상호 작용한 엔티티를 가져옵니다.static HandlerListgetType()병에 담길 아이템의 타입을 가져옵니다.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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:CancellableGets 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:
isCancelledin interfaceCancellable- Returns:
trueif this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets 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:
setCancelledin interfaceCancellable- Parameters:
cancel-trueif you wish to cancel this event
-
getType
병에 담길 아이템의 타입을 가져옵니다.- Returns:
- 병에 담길 아이템의 타입
-
getClickedBlock
플레이어가 상호 작용한 블록을 가져옵니다.
PlayerBottleIntoItemEvent.ItemType.WATER인 경우에만 null이 아닙니다.- Returns:
- 플레이어가 상호 작용한 블록
-
getClickedEntity
플레이어가 상호 작용한 엔티티를 가져옵니다.
PlayerBottleIntoItemEvent.ItemType.DRAGON_BREATH인 경우에만 null이 아닙니다.- Returns:
- 플레이어가 상호 작용한 엔티티
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-