Chest animation

Player Chest/EnderChest Animations (Open/Close) to nearby players, Works as intended, can only open if chest is closed, can only close when player closes out of storage inventory. 
Could one not extend GlowChest? Lots of code duplication here.