BlockProperties - 1.13 Swimming

Added boolean option to check if the block is apart of the 'newliquid' group
This commit is contained in:
CaptainObvious0 2019-03-13 18:25:47 -05:00 committed by GitHub
parent 09ee3c9195
commit 02bd53ee7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -2637,6 +2637,17 @@ public class BlockProperties {
public static final boolean isLiquid(final Material blockType) {
return (getBlockFlags(blockType) & F_LIQUID) != 0;
}
/**
* Checks if is apart of 1.13 water blocks.
*
* @param blockType
* the block type
* @return true, if is liquid
*/
public static final boolean isNewLiq(final Material blockType) {
return (getBlockFlags(blockType) & F_CLIMBLIQ) != 0;
}
/**
* Test for water type of blocks.