Package org.bukkit.event.hanging
Class HangingPlaceEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.hanging.HangingEvent
org.bukkit.event.hanging.HangingPlaceEvent
- All Implemented Interfaces:
- Cancellable
Triggered when a hanging entity is created in the world
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.hanging.HangingEventhanging
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBlock()Returns the block that the hanging entity was placed onReturns the face of the block that the hanging entity was placed onstatic HandlerListGets the item from which the hanging entity originatedReturns the player placing the hanging entitybooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.hanging.HangingEventgetEntityMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details
- 
Method Details- 
getPlayerReturns the player placing the hanging entity- Returns:
- the player placing the hanging entity
 
- 
getBlockReturns the block that the hanging entity was placed on- Returns:
- the block that the hanging entity was placed on
 
- 
getBlockFaceReturns the face of the block that the hanging entity was placed on- Returns:
- the face of the block that the hanging entity was placed on
 
- 
getItemStackGets the item from which the hanging entity originated- Returns:
- the item from which the hanging entity originated
 
- 
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:
- true if 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- true if you wish to cancel this event
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-