()
| 812 | } |
| 813 | |
| 814 | public static String getResourcePackNames() { |
| 815 | if (minecraft.getResourcePackRepository() == null) { |
| 816 | return ""; |
| 817 | } else { |
| 818 | IResourcePack[] airesourcepack = getResourcePacks(); |
| 819 | |
| 820 | if (airesourcepack.length <= 0) { |
| 821 | return getDefaultResourcePack().getPackName(); |
| 822 | } else { |
| 823 | String[] astring = new String[airesourcepack.length]; |
| 824 | |
| 825 | for (int i = 0; i < airesourcepack.length; ++i) { |
| 826 | astring[i] = airesourcepack[i].getPackName(); |
| 827 | } |
| 828 | |
| 829 | String s = arrayToString(astring); |
| 830 | return s; |
| 831 | } |
| 832 | } |
| 833 | } |
| 834 | |
| 835 | public static DefaultResourcePack getDefaultResourcePack() { |
| 836 | if (defaultResourcePackLazy == null) { |
no test coverage detected