Skip to content

Commit

Permalink
Merge pull request #87 from carelesshippo/v1.15
Browse files Browse the repository at this point in the history
Added isEmpty and isLiquid to the block class.
  • Loading branch information
seeseemelk committed Jul 20, 2020
2 parents c90cede + 4120ed2 commit ac799df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/be/seeseemelk/mockbukkit/block/BlockMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,13 @@ public int getBlockPower()
@Override
public boolean isEmpty()
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
return this.getType().equals(Material.AIR);
}

@Override
public boolean isLiquid()
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
return this.getType().equals(Material.LAVA) || this.getType().equals(Material.WATER);
}

@Override
Expand Down

0 comments on commit ac799df

Please sign in to comment.