mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
-Moved the woodpile from the arboriculture module to the charcoal module -Moved the backpacks from the storage module to the backpacks module -Moved the crates from the storage module to the creates module -Added the database module with a new storage for individuals -Added a gui element system to improve the alyzer api -Added a species plugin interface to handle the database gui -Added some alyzer methods to the species plugin to move the alyzer integration later to it
67 lines
2.4 KiB
Java
67 lines
2.4 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
*
|
|
* Various Contributors including, but not limited to:
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
******************************************************************************/
|
|
package forestry.plugins;
|
|
|
|
import net.minecraftforge.fml.common.Optional;
|
|
|
|
import forestry.core.config.Constants;
|
|
import forestry.core.utils.ModUtil;
|
|
import forestry.modules.BlankForestryModule;
|
|
import forestry.modules.ForestryModule;
|
|
import forestry.modules.ForestryModuleUids;
|
|
|
|
@ForestryModule(containerID = ForestryCompatPlugins.ID, moduleID = ForestryModuleUids.BUILDCRAFT_STATEMENTS, name = "BuildCraft 6 Statements", author = "mezz", url = Constants.URL, unlocalizedDescription = "for.module.buildcraft6.description")
|
|
//@Optional.Interface(iface = "buildcraft.api.statements.ITriggerProvider", modid = "BuildCraftAPI|statements")
|
|
public class PluginBuildCraftStatements extends BlankForestryModule {//implements ITriggerProvider {
|
|
|
|
@Override
|
|
public boolean isAvailable() {
|
|
return ModUtil.isAPILoaded("buildcraft.api.statements", "[1.0, 2.0)");
|
|
}
|
|
|
|
@Override
|
|
public String getFailMessage() {
|
|
return "Compatible BuildCraftAPI|statements version not found";
|
|
}
|
|
|
|
@Optional.Method(modid = "BuildCraftAPI|statements")
|
|
@Override
|
|
public void doInit() {
|
|
// Add custom trigger handler
|
|
// TODO: Buildcraft for 1.9
|
|
// StatementManager.registerTriggerProvider(this);
|
|
}
|
|
|
|
/* ITriggerProvider */
|
|
|
|
// TODO: Buildcraft for 1.9
|
|
// @Optional.Method(modid = "BuildCraftAPI|statements")
|
|
// @Override
|
|
// public Collection<ITriggerInternal> getInternalTriggers(IStatementContainer container) {
|
|
// TileEntity tile = container.getTile();
|
|
// if (tile instanceof ITriggerProvider) {
|
|
// return ((ITriggerProvider) tile).getInternalTriggers(container);
|
|
// }
|
|
//
|
|
// return null;
|
|
// }
|
|
//
|
|
// @Optional.Method(modid = "BuildCraftAPI|statements")
|
|
// @Override
|
|
// public Collection<ITriggerExternal> getExternalTriggers(EnumFacing side, TileEntity tile) {
|
|
// if (tile instanceof ITriggerProvider) {
|
|
// return ((ITriggerProvider) tile).getExternalTriggers(side, tile);
|
|
// }
|
|
//
|
|
// return null;
|
|
// }
|
|
}
|