| 293 | } |
| 294 | |
| 295 | private static void addToList(CustomGuiProperties cgp, List<List<CustomGuiProperties>> listProps) |
| 296 | { |
| 297 | if (cgp.getContainer() == null) |
| 298 | { |
| 299 | warn("Invalid container: " + cgp.getContainer()); |
| 300 | } |
| 301 | else |
| 302 | { |
| 303 | int i = cgp.getContainer().ordinal(); |
| 304 | |
| 305 | while (listProps.size() <= i) |
| 306 | { |
| 307 | listProps.add(null); |
| 308 | } |
| 309 | |
| 310 | List<CustomGuiProperties> list = (List)listProps.get(i); |
| 311 | |
| 312 | if (list == null) |
| 313 | { |
| 314 | list = new ArrayList(); |
| 315 | listProps.set(i, list); |
| 316 | } |
| 317 | |
| 318 | list.add(cgp); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | public static PlayerControllerOF getPlayerControllerOF() |
| 323 | { |