(self, directory: str)
| 142 | return None |
| 143 | |
| 144 | def load_plugins(self, directory: str) -> list[Plugin]: |
| 145 | loaded_plugins = [] |
| 146 | |
| 147 | if not self._plugins: |
| 148 | eps = entry_points(group="endstone") |
| 149 | for ep in eps: |
| 150 | plugin = self._load_plugin_from_ep(ep) |
| 151 | if plugin: |
| 152 | loaded_plugins.append(plugin) |
| 153 | |
| 154 | for file in glob.glob(os.path.join(directory, "*.whl")): |
| 155 | plugin = self.load_plugin(file) |
| 156 | if plugin: |
| 157 | loaded_plugins.append(plugin) |
| 158 | |
| 159 | return loaded_plugins |
| 160 | |
| 161 | def _load_plugin_from_ep(self, ep: EntryPoint) -> Plugin | None: |
| 162 | # enforce naming convention |
nothing calls this directly
no test coverage detected