Interface SulfurCubeKickEvent
- All Superinterfaces:
Cancellable, Event, MobEvent
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumHow a sulfur cube is sent flying. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns how the cube is sent flying.kicker()Returns the entity that hits or pushes the cube.mob()Returns the cube about to be sent flying.push()Returns the speed the kick adds to the cube.voidsetPush(FinePosition push) Changes the speed the kick adds to the cube.Methods inherited from interface Cancellable
isCancelled, setCancelled
-
Method Details
-
mob
SulfurCube mob()Returns the cube about to be sent flying. -
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
SulfurCubeKickEvent.Cause 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
Changes the speed the kick adds to the cube.- Parameters:
push- the speed, in blocks per tick along each axis- Since:
- 0.1.0
-