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

Method getModObjectById

src/main/java/net/minecraftforge/fml/ModList.java:172–176  ·  view source on GitHub ↗
(String modId)

Source from the content-addressed store, hash-verified

170 }
171
172 @SuppressWarnings("unchecked")
173 public <T> Optional<T> getModObjectById(String modId)
174 {
175 return getModContainerById(modId).map(ModContainer::getMod).map(o -> (T) o);
176 }
177
178 public Optional<? extends ModContainer> getModContainerById(String modId)
179 {

Callers 1

getValueMethod · 0.80

Calls 2

getModContainerByIdMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected