MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / getByID

Method getByID

src/main/java/data/Effects.java:29–32  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

27 }
28
29 public static Effects getByID(int id) {
30 if (id < 0 || id >= effects.size) return null;
31 else return effects.get(id);
32 }
33
34 public static Effects getByName(String name) {
35 return effects.find(e -> e.name.equals(name));

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected