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

Method update

src/main/java/net/optifine/CustomItems.java:66–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 private static final String TYPE_POTION_LINGER = "linger";
65
66 public static void update()
67 {
68 itemProperties = (CustomItemProperties[][])null;
69 enchantmentProperties = (CustomItemProperties[][])null;
70 useGlint = true;
71
72 if (Config.isCustomItems())
73 {
74 readCitProperties("mcpatcher/cit.properties");
75 IResourcePack[] airesourcepack = Config.getResourcePacks();
76
77 for (int i = airesourcepack.length - 1; i >= 0; --i)
78 {
79 IResourcePack iresourcepack = airesourcepack[i];
80 update(iresourcepack);
81 }
82
83 update(Config.getDefaultResourcePack());
84
85 if (itemProperties.length <= 0)
86 {
87 itemProperties = (CustomItemProperties[][])null;
88 }
89
90 if (enchantmentProperties.length <= 0)
91 {
92 enchantmentProperties = (CustomItemProperties[][])null;
93 }
94 }
95 }
96
97 private static void readCitProperties(String fileName)
98 {

Callers 1

registerVariantNamesMethod · 0.95

Calls 15

isCustomItemsMethod · 0.95
readCitPropertiesMethod · 0.95
getResourcePacksMethod · 0.95
collectFilesMethod · 0.95
addObjectsToArrayMethod · 0.95
makePropertyListMethod · 0.95
dbgMethod · 0.95
warnMethod · 0.95
isValidMethod · 0.95
addToItemListMethod · 0.95

Tested by

no test coverage detected