MCPcopy Index your code
hub / github.com/ZetaMap/MoreCommands / setToDefault

Method setToDefault

src/main/java/data/Effects.java:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 public static void setToDefault() {
39 Effects ef;
40 String[] list = {"none", "unitSpawn", "unitControl", "unitDespawn", "unitSpirit", "itemTransfer", "pointBeam", "lightning", "unitWreck", "rocketSmoke",
41 "rocketSmokeLarge", "fireSmoke", "melting", "wet", "muddy", "oily", "dropItem", "impactcloud", "unitShieldBreak", "coreLand"};
42
43 effects.each(e -> e.disabled = false);
44 for (String name : list) {
45 ef = getByName(name);
46 if (ef != null) ef.disabled = true;
47 }
48 }
49
50 public static Seq<Effects> copy(boolean withAdmin, boolean withDisabled) {
51 return withAdmin && withDisabled ? effects

Callers 1

Calls 2

getByNameMethod · 0.95
eachMethod · 0.45

Tested by

no test coverage detected