Use PotionType instead of PotionEffectType to sort potions (PotionType is more generic and covers things like water bottles, which contain no effect). Also fixes a NPE when attempting to get and use a PotionEffectType on things like water bottles.
Use Material#isOccluding to check if the block above a chest prevents the chest from being opened.