Package org.mockbukkit.mockbukkit.plugin
Class PluginMock
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.mockbukkit.mockbukkit.plugin.PluginMock
- All Implemented Interfaces:
LifecycleEventOwner,CommandExecutor,TabCompleter,TabExecutor,Plugin
- Direct Known Subclasses:
PluginMock.InternalPluginMock
A simple plugin that does nothing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionCraftBukkit constructor.protectedPluginMock(@NotNull JavaPluginLoader loader, @NotNull PluginDescriptionFile description, @NotNull File dataFolder, @NotNull File file) MockBukkit constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginMock.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
-
PluginMock
public PluginMock()CraftBukkit constructor. -
PluginMock
protected PluginMock(@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
-