mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 10:55:06 +00:00
General clean up and improvement of internal plugin system
This commit is contained in:
1 parent
3ad5bdd598
commit
7cc3668a70
26 files changed
+593
-762
No files matched your search
@@ -19,7 +19,6 @@ import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
|
||||
import forestry.api.core.PluginInfo;
|
||||
import forestry.api.mail.EnumPostage;
|
||||
import forestry.api.mail.PostManager;
|
||||
import forestry.api.recipes.RecipeManagers;
|
||||
@@ -59,8 +58,8 @@ import forestry.mail.triggers.TriggerLowInput;
|
||||
import forestry.mail.triggers.TriggerLowPaper;
|
||||
import forestry.mail.triggers.TriggerLowStamps;
|
||||
|
||||
@PluginInfo(pluginID = "Mail", name = "Mail", author = "SirSengir", url = Defaults.URL, description = "Adds Forestry's mail and trade system.")
|
||||
public class PluginMail extends NativePlugin {
|
||||
@Plugin(pluginID = "Mail", name = "Mail", author = "SirSengir", url = Defaults.URL, description = "Adds Forestry's mail and trade system.")
|
||||
public class PluginMail extends ForestryPlugin {
|
||||
|
||||
@SidedProxy(clientSide = "forestry.mail.proxy.ClientProxyMail", serverSide = "forestry.mail.proxy.ProxyMail")
|
||||
public static ProxyMail proxy;
|
||||
@@ -78,11 +77,6 @@ public class PluginMail extends NativePlugin {
|
||||
public static MachineDefinition definitionPhilatelist;
|
||||
public static StampInfo[] stampDefinitions;
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return !Config.disableMail;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
super.preInit();
|
||||
|
||||
Reference in new issue
Block a user