Plugin

public abstract class Plugin
Author:Florian Warzecha

Fields

logger

public Logger logger

Constructors

Plugin

public Plugin(String name)

Methods

getName

public String getName()

registerCommandClasses

public void registerCommandClasses(FMLServerStartingEvent event)

This is called during registration of commands. Allows the registration of own command classes via the net.minecraftforge.fml.common.event.FMLServerStartingEvent.registerServerCommand(ICommand) method.

registerEventClasses

public void registerEventClasses()

This is called during registration of events. Allows the registration of own event classes via the net.minecraftforge.fml.common.eventhandler.EventBus.register(Object) method. Call this method on the following instance: net.minecraftforge.common.MinecraftForge.EVENT_BUS

setLogger

public void setLogger(Logger logger)