MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / applyAgent

Method applyAgent

launcher/minecraft/LaunchProfile.cpp:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void LaunchProfile::applyAgent(AgentPtr agent, const RuntimeContext & runtimeContext)
225{
226 auto lib = agent->library();
227 if(!lib->isActive(runtimeContext))
228 {
229 return;
230 }
231
232 if(lib->isNative())
233 {
234 return;
235 }
236
237 m_agents.append(agent);
238}
239
240const LibraryPtr LaunchProfile::getMainJar() const
241{

Callers 1

applyToMethod · 0.80

Calls 4

libraryMethod · 0.80
isNativeMethod · 0.80
appendMethod · 0.80
isActiveMethod · 0.45

Tested by

no test coverage detected