Package be.seeseemelk.mockbukkit
Class MockPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
be.seeseemelk.mockbukkit.MockPlugin
- All Implemented Interfaces:
LifecycleEventOwner,CommandExecutor,TabCompleter,TabExecutor,Plugin
- Direct Known Subclasses:
MockPlugin.InternalMockPlugin
A simple plugin that does nothing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionCraftBukkit constructor.protectedMockPlugin(@NotNull JavaPluginLoader loader, @NotNull PluginDescriptionFile description, @NotNull File dataFolder, @NotNull File file) MockBukkit constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic MockPlugin.Builderbuilder()Create a builder for mock plugins, allows for on enable, on disable code execution and so onMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onDisable, onEnable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
MockPlugin
public MockPlugin()CraftBukkit constructor. -
MockPlugin
protected MockPlugin(@NotNull @NotNull JavaPluginLoader loader, @NotNull @NotNull PluginDescriptionFile description, @NotNull @NotNull File dataFolder, @NotNull @NotNull File file) MockBukkit constructor.- Parameters:
loader- The plugin loader.description- The plugin description file.dataFolder- The plugins data folder.file- The plugins file.
-
-
Method Details
-
builder
Create a builder for mock plugins, allows for on enable, on disable code execution and so on- Returns:
- A builder for mock plugin
-