More water model fixes
This commit is contained in:
parent
1495d6c2df
commit
ea139caeab
4 changed files with 17 additions and 9 deletions
|
|
@ -292,6 +292,12 @@ public class DynmapBlockState {
|
|||
public final void setWaterlogged() {
|
||||
matchflags |= MATCH_WATERLOGGED;
|
||||
}
|
||||
/**
|
||||
* Test if block is water OR waterlogged (block filled with water)
|
||||
*/
|
||||
public final boolean isWaterFilled() {
|
||||
return (matchflags & (MATCH_WATERLOGGED | MATCH_WATER)) != 0;
|
||||
}
|
||||
/**
|
||||
* Test if block is leaves
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue