Package org.bukkit.event.block
Class SculkBloomEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.SculkBloomEvent
- All Implemented Interfaces:
- Cancellable
Represents an event triggered when a new cursor is created by a 
SculkCatalyst.
 Cursor Definition: A cursor in this context is a dynamic marker or pointer generated by the SculkCatalyst. It occupies a block and spreads sculk as it moves. It is similar to entity, but it is not an entity. Cursors are ticked by the tile entity.
Triggers for Cursor Creation:
- An entity, when killed and drops experience, within an 8-block radius of a SculkCatalyst.
- An explicit call from a plugin using SculkCatalyst.bloom(Block, int).
BlockEvent.getBlock() is the location that the cursor is spawning at.- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the charge of the cursor, < 1000 by default.static HandlerListbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.voidsetCharge(int charge) Sets the charge of the cursor.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
SculkBloomEvent
 
- 
- 
Method Details- 
getChargepublic int getCharge()Returns the charge of the cursor, < 1000 by default.- Returns:
- the charge of the cursor
 
- 
setChargepublic void setCharge(int charge) Sets the charge of the cursor.Increasing the charge of a cursor makes the cursor last longer, giving it more time to spread sculk blocks across a larger range. Typically, charges should be set to the exp reward of a mob ( EntityDeathEvent.getDroppedExp()), which is usually 3-5 for animals, and 5-10 for the average mob (up to 50 for wither skeletons). Roughly speaking, for each charge, 1 more sculk block will be placed.- Parameters:
- charge- the charge of the cursor.
 
- 
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
 
-