Class SculkBloomEvent

All Implemented Interfaces:
Cancellable

public class SculkBloomEvent extends BlockEvent implements 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:

The result of BlockEvent.getBlock() is the location that the cursor is spawning at.
  • Constructor Details

    • SculkBloomEvent

      public SculkBloomEvent(@NotNull Block theBlock, int charge)
  • Method Details

    • getCharge

      public int getCharge()
      Returns the charge of the cursor, < 1000 by default.
      Returns:
      the charge of the cursor
    • setCharge

      public 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.
    • 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 interface Cancellable
      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 interface Cancellable
      Parameters:
      cancel - true if you wish to cancel this event
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()