| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package de.pewpewproject.lasertag.resource; |
||
| 12 | public class ResourceManagers { |
||
| 13 | public static final StructureResourceManager STRUCTURE_RESOURCE_MANAGER = new StructureResourceManager(); |
||
| 14 | |||
| 15 | public static final WebResourceManager WEB_RESOURCE_MANAGER = new WebResourceManager(); |
||
| 16 | |||
| 17 | static { |
||
| 18 | try { |
||
| 19 | STRUCTURE_RESOURCE_MANAGER.reload(); |
||
| 20 | } catch (Exception ex) { |
||
| 21 | LasertagMod.LOGGER.error("Could not load arena structure resources:", ex); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | public static void register() { |
||
| 26 | ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(WEB_RESOURCE_MANAGER); |
||
| 27 | } |
||
| 29 |