Fix bug with custom Fluids. You can now drown in them!

This commit is contained in:
LexManos committed 2013-08-18 23:16:36 -07:00
1 parent 4b64c15ae8
commit 461a30812b
5 files changed
+83 -12

No files matched your search

@@ -37,4 +37,15 @@ public interface IFluidBlock
* @return
*/
boolean canDrain(World world, int x, int y, int z);
/**
* Returns the amount of a single block is filled. Value between 0 and 1.
* 1 meaning the entire 1x1x1 cube is full, 0 meaning completely empty.
*
* If the return value is negative. It will be treated as filling the block
* from the top down instead of bottom up.
*
* @return
*/
float getFilledPercentage(World world, int x, int y, int z);
}