question: public static boolean canFunction ( TileEntity tileEntity ) { if ( ! ( tileEntity instanceof IRedstoneControl ) ) { return true ; } IRedstoneControl control = ( IRedstoneControl ) tileEntity ; switch ( control . getControlType ( ) ) { case DISABLED : return true ; case HIGH : return control . isPowered ( ) ; case LOW : return ! control . isPowered ( ) ; case PULSE : return control . isPowered ( ) && ! control . wasPowered ( ) ; } return false ; }
target:  Whether or not a certain TileEntity can function with redstone logic. Illogical to use unless the defined TileEntity implements IRedstoneControl.