MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getResourcePackNames

Method getResourcePackNames

src/main/java/net/minecraft/src/Config.java:814–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls 5

getResourcePacksMethod · 0.95
arrayToStringMethod · 0.95
getPackNameMethod · 0.65

Tested by

no test coverage detected