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

Method orElse

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

Return the mod object if present, otherwise return other. @param other the mod object to be returned if there is no mod object present, may be null @return the mod object, if present, otherwise other

(T other)

Source from the content-addressed store, hash-verified

182 * @return the mod object, if present, otherwise {@code other}
183 */
184 public T orElse(T other) {
185 return getValue() != null ? getValue() : other;
186 }
187
188 /**
189 * Return the mod object if present, otherwise invoke {@code other} and return

Callers 15

getRecipeMethod · 0.45
getMemoryMethod · 0.45
getFirstTrustedPlayerMethod · 0.45
getRandomMethod · 0.45
getRandomMethod · 0.45
extractHookMethod · 0.45
dropperInsertHookMethod · 0.45
insertHookMethod · 0.45
createMethod · 0.45
tryFillContainerMethod · 0.45

Calls 1

getValueMethod · 0.95

Tested by

no test coverage detected