Package xyz.srnyx.annoyingapi.parents
Class AnnoyableClass
- java.lang.Object
-
- xyz.srnyx.annoyingapi.parents.AnnoyableClass
-
- All Implemented Interfaces:
Annoyable
public class AnnoyableClass extends java.lang.Object implements Annoyable
Represents a class that has a built-in reference to theAnnoyingPlugininstance
Useful to simplify classes that want to implementAnnoyable
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull AnnoyingPluginpluginTheAnnoyingPlugininstance
-
Constructor Summary
Constructors Constructor Description AnnoyableClass(@NotNull AnnoyingPlugin plugin)Creates a newAnnoyableClasswith the given plugin
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnnoyingPlugingetAnnoyingPlugin()TheAnnoyingPlugininstance
-
-
-
Field Detail
-
plugin
@NotNull protected final @NotNull AnnoyingPlugin plugin
TheAnnoyingPlugininstance
-
-
Constructor Detail
-
AnnoyableClass
public AnnoyableClass(@NotNull @NotNull AnnoyingPlugin plugin)Creates a newAnnoyableClasswith the given plugin- Parameters:
plugin-plugin
-
-
Method Detail
-
getAnnoyingPlugin
@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Specified by:
getAnnoyingPluginin interfaceAnnoyable- Returns:
- the plugin instance
-
-