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

Class PluginBase

src/main/java/org/bukkit/plugin/PluginBase.java:11–36  ·  view source on GitHub ↗

Represents a base Plugin Extend this class if your plugin is not a org.bukkit.plugin.java.JavaPlugin

Source from the content-addressed store, hash-verified

9 * org.bukkit.plugin.java.JavaPlugin}
10 */
11public abstract class PluginBase implements Plugin {
12 @Override
13 public final int hashCode() {
14 return getName().hashCode();
15 }
16
17 @Override
18 public final boolean equals(Object obj) {
19 if (this == obj) {
20 return true;
21 }
22 if (obj == null) {
23 return false;
24 }
25 if (!(obj instanceof Plugin)) {
26 return false;
27 }
28 return getName().equals(((Plugin) obj).getName());
29 }
30
31 @Override
32 @NotNull
33 public final String getName() {
34 return getDescription().getName();
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected