Interface SulfurCubeKickEvent

All Superinterfaces:
Cancellable, Event, MobEvent

public interface SulfurCubeKickEvent extends MobEvent, Cancellable
Fired when a sulfur cube holding a block is about to be sent flying: hit by an entity, or pushed by a player walking into it.

Cancelling it leaves the cube as it goes; a hit still lands, harmless, and a hot cube still burns the player pushing it.

Since:
0.1.0
  • Method Details

    • mob

      SulfurCube mob()
      Returns the cube about to be sent flying.
      Specified by:
      mob in interface MobEvent
      Returns:
      the cube about to be sent flying
      Since:
      0.1.0
    • kicker

      Entity kicker()
      Returns the entity that hits or pushes the cube.
      Returns:
      the entity that hits or pushes the cube
      Since:
      0.1.0
    • cause

      Returns how the cube is sent flying.
      Returns:
      how the cube is sent flying
      Since:
      0.1.0
    • push

      FinePosition push()
      Returns the speed the kick adds to the cube., in blocks per tick along each axis
      Returns:
      the speed the kick adds to the cube
      Since:
      0.1.0
    • setPush

      void setPush(FinePosition push)
      Changes the speed the kick adds to the cube.
      Parameters:
      push - the speed, in blocks per tick along each axis
      Since:
      0.1.0