MCPcopy Create free account
hub / github.com/Teneted/Tenet / getValue

Method getValue

src/main/java/net/minecraftforge/fml/OptionalMod.java:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 private T getValue()
58 {
59 if (!searched) {
60 this.value = ModList.get().<T>getModObjectById(this.modId).orElse(null);
61 searched = true;
62 }
63 return this.value;
64 }
65
66 /**
67 * If a mod is present in this {@code OptionalMod}, returns the value,

Callers 9

getMethod · 0.95
isPresentMethod · 0.95
ifPresentMethod · 0.95
filterMethod · 0.95
mapMethod · 0.95
flatMapMethod · 0.95
orElseMethod · 0.95
orElseGetMethod · 0.95
orElseThrowMethod · 0.95

Calls 3

getMethod · 0.95
getModObjectByIdMethod · 0.80
orElseMethod · 0.45

Tested by

no test coverage detected