| 222 | } |
| 223 | |
| 224 | private static CustomGuiProperties[][] propertyListToArray(List<List<CustomGuiProperties>> listProps) |
| 225 | { |
| 226 | if (listProps.isEmpty()) |
| 227 | { |
| 228 | return (CustomGuiProperties[][])null; |
| 229 | } |
| 230 | else |
| 231 | { |
| 232 | CustomGuiProperties[][] acustomguiproperties = new CustomGuiProperties[CustomGuiProperties.EnumContainer.VALUES.length][]; |
| 233 | |
| 234 | for (int i = 0; i < acustomguiproperties.length; ++i) |
| 235 | { |
| 236 | if (listProps.size() > i) |
| 237 | { |
| 238 | List<CustomGuiProperties> list = (List)listProps.get(i); |
| 239 | |
| 240 | if (list != null) |
| 241 | { |
| 242 | CustomGuiProperties[] acustomguiproperties1 = (CustomGuiProperties[])((CustomGuiProperties[])list.toArray(new CustomGuiProperties[list.size()])); |
| 243 | acustomguiproperties[i] = acustomguiproperties1; |
| 244 | } |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | return acustomguiproperties; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | private static void update(IResourcePack rp, List<List<CustomGuiProperties>> listProps) |
| 253 | { |