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

Method JavaPlugin

src/main/java/org/bukkit/plugin/java/JavaPlugin.java:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 private PluginLogger logger = null;
46
47 public JavaPlugin() {
48 final ClassLoader classLoader = this.getClass().getClassLoader();
49 if (!(classLoader instanceof PluginClassLoader)) {
50 throw new IllegalStateException("JavaPlugin requires " + PluginClassLoader.class.getName());
51 }
52 ((PluginClassLoader) classLoader).initialize(this);
53 }
54
55 protected JavaPlugin(@NotNull final JavaPluginLoader loader, @NotNull final PluginDescriptionFile description, @NotNull final File dataFolder, @NotNull final File file) {
56 final ClassLoader classLoader = this.getClass().getClassLoader();

Callers

nothing calls this directly

Calls 4

initMethod · 0.95
getClassLoaderMethod · 0.80
getNameMethod · 0.65
initializeMethod · 0.45

Tested by

no test coverage detected