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
@@ -29,7 +29,6 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import forestry.api.circuits.ChipsetManager;
|
||||
import forestry.api.circuits.ICircuitLayout;
|
||||
import forestry.api.core.PluginInfo;
|
||||
import forestry.api.farming.Farmables;
|
||||
import forestry.api.farming.IFarmable;
|
||||
import forestry.core.circuits.Circuit;
|
||||
@@ -81,8 +80,8 @@ import forestry.farming.triggers.TriggerLowFertilizer;
|
||||
import forestry.farming.triggers.TriggerLowLiquid;
|
||||
import forestry.farming.triggers.TriggerLowSoil;
|
||||
|
||||
@PluginInfo(pluginID = "Farming", name = "Farming", author = "SirSengir", url = Defaults.URL, description = "Adds automatic farms and harvesters for a wide variety of products.")
|
||||
public class PluginFarming extends NativePlugin {
|
||||
@Plugin(pluginID = "Farming", name = "Farming", author = "SirSengir", url = Defaults.URL, description = "Adds automatic farms and harvesters for a wide variety of products.")
|
||||
public class PluginFarming extends ForestryPlugin {
|
||||
|
||||
@SidedProxy(clientSide = "forestry.farming.proxy.ClientProxyFarming", serverSide = "forestry.farming.proxy.ProxyFarming")
|
||||
public static ProxyFarming proxy;
|
||||
@@ -96,11 +95,6 @@ public class PluginFarming extends NativePlugin {
|
||||
public static Trigger lowFertilizer50;
|
||||
public static Trigger lowFertilizer25;
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return !Config.disableFarming;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
super.preInit();
|
||||
|
||||
Reference in new issue
Block a user