Skip to content

Commit 0283ff1

Browse files
committed
Added getCETCommands().
1 parent 39af8ac commit 0283ff1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Mods/Mod/BaseModItemsCollection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ public function getMod(): ModInfoInterface
3636
return $this->modInfo;
3737
}
3838

39+
public function getCETCommands(): string
40+
{
41+
$items = array();
42+
foreach($this->getAll() as $item) {
43+
$items[] = $item->getCETCommand();
44+
}
45+
46+
return implode("\n", $items);
47+
}
48+
3949
protected function registerItems(): void
4050
{
4151
foreach($this->itemData as $itemDef) {

0 commit comments

Comments
 (0)