pocketmine\event\HandlerList::bake PHP Method

bake() public method

public bake ( )
    public function bake()
    {
        if ($this->handlers !== null) {
            return;
        }
        $entries = [];
        foreach ($this->handlerSlots as $list) {
            foreach ($list as $hash => $listener) {
                $entries[$hash] = $listener;
            }
        }
        $this->handlers = $entries;
    }