34    use AnimatedBlockInventoryTrait;
 
   36    public function __construct(
Position $holder){
 
   37        $this->holder = $holder;
 
   38        parent::__construct(27);
 
   41    protected function getOpenSound() : 
Sound{
 
   45    protected function getCloseSound() : 
Sound{
 
   49    protected function animateBlock(
bool $isOpen) : 
void{
 
   50        $holder = $this->getHolder();
 
   52        $block = $world->getBlock($holder);
 
   53        if($block instanceof 
Barrel){
 
   54            $world->setBlock($holder, $block->setOpen($isOpen));