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

Method isPresent

src/main/java/net/minecraftforge/fml/OptionalMod.java:91–93  ·  view source on GitHub ↗

Return true if there is a mod object present, otherwise false. @return true if there is a mod object present, otherwise false

()

Source from the content-addressed store, hash-verified

89 * @return {@code true} if there is a mod object present, otherwise {@code false}
90 */
91 public boolean isPresent() {
92 return getValue() != null;
93 }
94
95 /**
96 * If a mod object is present, invoke the specified consumer with the object,

Callers 15

filterMethod · 0.95
mapMethod · 0.95
flatMapMethod · 0.95
createWorldMethod · 0.45
CraftLegacyClass · 0.45
getLodestoneMethod · 0.45
sleepMethod · 0.45
getShoulderEntityLeftMethod · 0.45
getBedSpawnLocationMethod · 0.45
setFirstTrustedPlayerMethod · 0.45

Calls 1

getValueMethod · 0.95

Tested by

no test coverage detected