Interface SulfurCubeSwallowEvent
- All Superinterfaces:
Cancellable, Event, MobEvent
Fired when a sulfur cube is about to swallow a block: one a player gives it, or one it picks up
from the ground.
Cancelling it leaves the block where it is: in the hand of the player, or on the ground. It does not fire for a plugin giving the cube a block.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptiongiver()Returns the player giving the block,nullif the cube picks it up.item()Returns the block about to be swallowed.mob()Returns the cube about to swallow the block.pickedUp()Returns the item lying on the ground the cube picks the block from,nullif a player gives it.Methods inherited from interface Cancellable
isCancelled, setCancelled
-
Method Details
-
mob
SulfurCube mob()Returns the cube about to swallow the block. -
item
ItemStack item()Returns the block about to be swallowed., one of it- Returns:
- the block about to be swallowed
- Since:
- 0.1.0
-
giver
-
pickedUp
@Nullable ItemEntity pickedUp()Returns the item lying on the ground the cube picks the block from,nullif a player gives it.- Returns:
- the item lying on the ground the cube picks the block from,
nullif a player gives it - Since:
- 0.1.0
-