Interface IWPlugin
public interface IWPlugin
-
Method Details
-
init
@OverrideOnly @AvailableSince("1.17.0") default void init(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) Initialize your plugin here. This occurs during theFMLCommonSetupEvent, and the event instance is passed here.
It is not required for you to have anything here. If your plugin does not need to initialize, there is no need to override. -
getPluginName
Set your plugin name. This should ideally be in the format ofmodid:pluginnameto avoid naming clashes.- Returns:
- a string containing the plugin name
-
areLoadingRequirementsMet
@AvailableSince("1.17.0") default boolean areLoadingRequirementsMet()Determine if your loading requirements are met. For example, checking if a dependency is installed first. Do any of your requirement checks here. Returningfalsewill prevent the plugin from initializing.- Returns:
- a boolean determining if the plugin can initialize
-