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 SummaryNested ClassesNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerBottleIntoItemEvent(Player player, PlayerBottleIntoItemEvent.ItemType type, @Nullable Block clickedBlock, @Nullable Entity clickedEntity) 
- 
Method SummaryModifier 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.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
- 
Constructor Details- 
PlayerBottleIntoItemEvent
 
- 
- 
Method Details- 
isCancelledpublic 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 interface- Cancellable
- Returns:
- trueif this event is cancelled
 
- 
setCancelledpublic 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 interface- Cancellable
- 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 class- Event
 
- 
getHandlerList
 
-