Interface FluidState
public interface FluidState
The fluid held by a block.
- Since:
- 0.1.0
- See Also:
-
Method Summary
-
Method Details
-
fluid
- Returns:
- the fluid
- Since:
- 0.1.0
-
isEmpty
boolean isEmpty()Returnstruewhen the block holds no fluid.- Returns:
truewhen the block holds no fluid- Since:
- 0.1.0
-
isSource
boolean isSource()Returnstruefor a source.- Returns:
truefor a source- Since:
- 0.1.0
-
isFalling
boolean isFalling()Returnstruefor fluid falling down a column.: a full block that is not a source- Returns:
truefor fluid falling down a column- Since:
- 0.1.0
-
amount
int amount()Returns how many eighths of the block the fluid fills.:8for a source or falling fluid, down to1for flowing fluid,0for no fluid- Returns:
- how many eighths of the block the fluid fills
- Since:
- 0.1.0
-