Compiles for 1.9! Very buggy, some things are missing.

This commit is contained in:
mezz committed 2016-05-05 01:11:21 -07:00
1 parent 5d74c1254b
commit 7bf554b024
135 files changed
+1710 -1919

No files matched your search

@@ -10,34 +10,25 @@
******************************************************************************/
package forestry.apiculture.trigger;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
// TODO: Buildcraft for 1.9
public class TriggerMissingDrone {//extends Trigger {
import forestry.api.core.IErrorLogicSource;
import forestry.core.errors.EnumErrorCode;
import forestry.core.triggers.Trigger;
import buildcraft.api.statements.IStatementContainer;
import buildcraft.api.statements.IStatementParameter;
public class TriggerMissingDrone extends Trigger {
public TriggerMissingDrone() {
super("missingDrone");
}
/**
* Return true if the tile given in parameter activates the trigger, given the parameters.
*/
@Override
public boolean isTriggerActive(TileEntity tile, EnumFacing side, IStatementContainer source, IStatementParameter[] parameters) {
if (!(tile instanceof IErrorLogicSource)) {
return false;
}
IErrorLogicSource apiary = (IErrorLogicSource) tile;
return apiary.getErrorLogic().contains(EnumErrorCode.NO_DRONE);
}
// public TriggerMissingDrone() {
// super("missingDrone");
// }
//
// /**
// * Return true if the tile given in parameter activates the trigger, given the parameters.
// */
// @Override
// public boolean isTriggerActive(TileEntity tile, EnumFacing side, IStatementContainer source, IStatementParameter[] parameters) {
//
// if (!(tile instanceof IErrorLogicSource)) {
// return false;
// }
//
// IErrorLogicSource apiary = (IErrorLogicSource) tile;
// return apiary.getErrorLogic().contains(EnumErrorCode.NO_DRONE);
// }
}