We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0554f commit fc63d5fCopy full SHA for fc63d5f
src/main/java/org/spongepowered/api/plugin/PluginManager.java
@@ -37,10 +37,14 @@
37
public interface PluginManager {
38
39
/**
40
- * Get the plugin container from an instance.
+ * Get the plugin container from an instance, if available.
41
+ *
42
+ * <p>If the provided object is not a plugin instance (usually a class
43
+ * annotated with {@link Plugin}, then {@link Optional#empty()} will be
44
+ * returned.</p>
45
*
46
* @param instance The instance
- * @return The container
47
+ * @return The container, if available.
48
*/
49
Optional<PluginContainer> fromInstance(Object instance);
50
0 commit comments