Interface CubeSplitEvent
- All Superinterfaces:
Cancellable, Event, MobEvent
Fired when a cube bigger than the smallest (a slime, a magma cube or a sulfur cube) dies and is
about to split into smaller ones, half its size.
Cancelling it, or setting the count to 0, leaves nothing behind.
- Since:
- 0.1.0
-
Method Summary
Methods inherited from interface Cancellable
isCancelled, setCancelled
-
Method Details
-
mob
-
count
int count()Returns how many cubes it splits into.: at first between2and4for a slime or a magma cube,2for a sulfur cube- Returns:
- how many cubes it splits into
- Since:
- 0.1.0
-
setCount
void setCount(int count) Changes how many cubes it splits into.- Parameters:
count- the new count,0or more- Throws:
IllegalArgumentException- if the count is negative- Since:
- 0.1.0
-
childSize
int childSize()Returns the size of each cube it splits into.- Returns:
- the size of each cube it splits into
- Since:
- 0.1.0
-